Skip to content

Conversation

@nikita240
Copy link
Contributor

All the controllers reference the parent controller with use App\Http\Controllers\Controller;. This doesn't work when you have a custom namespace, as the controller file no longer resolves through the App namespace.

PHP Fatal error:  Class 'App\Http\Controllers\Controller' not found in dir/vendor/Unisharp/laravel-filemanager/src/controllers/LfmController.php on line 15

To remedy this, I created a new abstract controller so that all the controllers can extend it instead of extending the one in an unknown namespace.

See tsawler/laravel-filemanager#48

@streamtw
Copy link
Member

Thank you @nikita240 !

streamtw added a commit that referenced this pull request Jan 29, 2016
Fix controllers extending controller in unknown namespace.
@streamtw streamtw merged commit c919a22 into UniSharp:master Jan 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants