Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel 8 routes namespace

 Route::group(['namespace' => 'AppHttpControllers', 'prefix' => 'admin',
 'as' => 'admin.', 'middleware' => ['auth:sanctum', 'verified']], function()
{
    Route::get('/dashboard', ['DashboardController', 'index']);
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #routes #namespace
ADD COMMENT
Topic
Name
4+7 =