1Route::group(['prefix'=>'accounts','as'=>'account.'], function(){
2 Route::get('/', 'AccountController@index')->name('index');
3 Route::get('connect', 'AccountController@connect')->name('connect');
4});
5
6Route::group(['prefix'=>'quotes','as'=>'quote.'], function(){
7 Route::get('/', 'QuoteController@index')->name('index');
8 Route::get('connect', 'QuoteController@create')->name('create');
9});
1Route::middleware(['first', 'second'])->group(function () {
2 Route::get('/', function () {
3 // Uses first & second middleware...
4 });
5
6 Route::get('/user/profile', function () {
7 // Uses first & second middleware...
8 });
9});
1Route::group(['prefix' => 'admin'], function () {
2 Route::get('users', function () {
3 // Matches The "/admin/users" URL
4 });
5});
1Route::prefix('admin')->group(function () {
2 Route::get('/users', function () {
3 // Matches The "/admin/users" URL
4 });
5});
1Route::group(['prefix' => 'post', 'middleware' => ['auth']], function(){
2 Route::get('all','Controller@post');
3 Route::get('user','Controller@post');
4 })
5
1Route::get('/novanoticia', 'HomeController@getNovaNoticia')->name('route_name');
2