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.
- Route::group(['prefix'=>'account'], function(){
- Route::get('/profile', function () {
- return 'profile';
- });
- Route::get('/history', function () {
- return 'history';
- });
- Route::get('/balance', function () {
- return 'balance';
- });
- });
details:
localhost/group_route/public/account/profile
Your localhost link account/profile
localhost/group_route/public/account/history
Your localhost link account/history
localhost/group_route/public/account/balance
Your localhost link account/balance
shelleyakter
wow nice post, laravel post