Answers for "laravel 8 why use in controller in routes file"

3

laravel route controller

use App\Http\Controllers\UserController;

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

Creating a Basic Route in Laravel 8

use App\Http\Controllers\PagesController;

// Create route for About Page
Route::get('about-us', [PagesController::class, 'aboutPage'])->name('pages.about');
Posted by: Guest on July-03-2021

Code answers related to "laravel 8 why use in controller in routes file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language