Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel Route::group definition

Route::group(['prefix'=>'accounts','as'=>'account.'], function(){
    Route::get('/', 'AccountController@index')->name('index');
    Route::get('connect', 'AccountController@connect')->name('connect');
});

Route::group(['prefix'=>'quotes','as'=>'quote.'], function(){
    Route::get('/', 'QuoteController@index')->name('index');
    Route::get('connect', 'QuoteController@create')->name('create');
});
Comment

laravel route group name

Route::group(['prefix'=>'accounts','as'=>'account.'], function(){
    Route::get('/', ['as' => 'index', 'uses' => 'AccountController@index']);
    Route::get('connect', ['as' => 'connect', 'uses' = > 'AccountController@connect']);
});
Comment

laravel group routes

Route::group(['prefix' => 'admin'], function () {
    Route::get('users', function ()    {
        // Matches The "/admin/users" URL
    });
});
Comment

route group in laravel

Route::group(['prefix' => 'admin']){
	Route::get('/',function(){
    	//...
    });
}
Comment

laravel route group

Route::middleware(['first', 'second'])->group(function () {
    Route::get('/', function () {
        // Uses first & second middleware...
    });
 
    Route::get('/user/profile', function () {
        // Uses first & second middleware...
    });
});
Comment

laravel Route group within a group

Route::group(['prefix' => 'user', 'as' => 'user.'], function() {
     Route::get('login', 'UserController@login');
     Route::get('register', 'UserController@register');
     Route::group(['middleware' => 'auth'], function() {
     Route::get('edit', 'UserController@edit');
   });
});
Comment

PREVIOUS NEXT
Code Example
::  
Php ::  
:: how to remove index.php in codeigniter 
::  
::  
::  
:: php exec shell command 
:: print array php 
::  
::  
::  
Javascript ::  
::  
Javascript ::  
Javascript ::  
Javascript ::  
::  
::  
Javascript :: mongodb query to check empty array 
::  
Javascript ::  
::  
::  
::  
Javascript ::  
Javascript ::  
::  
Javascript ::  
::  
::  
ADD CONTENT
Topic
Content
Source link
Name
9+3 =