Answers for "laravel 8 specifie method udes from controller"

3

laravel route controller

use App\Http\Controllers\UserController;

Route::get('user/{id}', [UserController::class, 'show']);
Posted by: Guest on November-29-2020
0

laravel 8 routes namespace

Route::group(['namespace' => 'App\Http\Controllers', 'prefix' => 'admin',
 'as' => 'admin.', 'middleware' => ['auth:sanctum', 'verified']], function()
{
    Route::get('/dashboard', ['DashboardController', 'index']);
});
Posted by: Guest on December-06-2020

Code answers related to "laravel 8 specifie method udes from controller"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language