Since you namespaced your controller it is looking for a View class in your namespace.
On the top of your controller you can add
Use View;
Or look for the class in the global scope by using a backslash.
\View::make('backend.dashboard.index');
Well you don't have to use namespace in your routes at all. controllers folder is already defined as autoload/classmap in composer.json
This will work and you won't mind the scope:
Route::get('admin', 'DashboardController@showWelcome');
Do not forget composer dump-auto
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community