Answers for "how to use route in controller laravel 8"

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 "how to use route in controller laravel 8"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language