Full Stack LAMP - MEAN Developer, Python developer. Certified Azure Developer. Freelance programmer/consultant/trainer.

Route::get('admin/home',['as' => 'home',function(){
   echo 'admin home';
}]);


// view 
echo route('home'); // output : http://localhost/admin/home
Route::group(['prefix' => 'admin'],function(){
Route::get('home',['as' => 'home',function(){
   echo 'admin home';
}]);
 });

// view 
echo route('home'); // output : http://localhost/admin/home
Route::group(['prefix' => 'admin','as' => 'admin'],function(){
Route::get('home',['as' => 'home',function(){
   echo 'admin home';
}]);
 });

// view 
echo route('admin.home'); // output : http://localhost/admin/home

Leave a Reply