Laravel 6 group route Systam

Laravel 6 group route Systam

Laravel 6 group route System:

Laravel Group Routing.........
Laravel provides an easy way to groups your routes. It will allow you to share route properties, such as prefix, middlewares, and namespaces across all routes within that group.

  1. Route::group(['prefix'=>'account'], function(){
  2.  
  3.     Route::get('/profile', function () {
  4.         return 'profile';
  5.     });
  6.  
  7.     Route::get('/history', function () {
  8.         return 'history';
  9.     });
  10.  
  11.     Route::get('/balance', function () {
  12.         return 'balance';
  13.     });
  14.  
  15. });

details:

yes localhost/group_route/public/account/profile

Your localhost link account/profile


yes localhost/group_route/public/account/history

Your localhost link account/history


yes localhost/group_route/public/account/balance

Your localhost link account/balance

 

Thank You..........