Support the ongoing development of Laravel.io →
Requests Architecture
Last updated 7 months ago.
0
Solution
Route::resource('dashboard','Admin\DashboardController');
Route::resource('users','Admin\UsersController');
Route::controller('profile','Admin\ProfileController');

is equal to

Route::group(array('namespace' => 'Admin'), function() 
{
    Route::resource('dashboard','DashboardController');
    Route::resource('users','UsersController');
    Route::controller('profile','ProfileController');
});
Last updated 7 months ago.
0

Many thanks mgsmus! Great sample!

Last updated 7 months ago.
0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.