how to create a get route in Laravel

133

how to create a get route in Laravel -

use App\Http\Controllers\PagesController;

// Create route for About Page
Route::get('about-us', [PagesController::class, 'aboutPage'])->name('pages.about');

laravel route Accessing The Current Route -

$route = Route::current();

$name = Route::currentRouteName();

$action = Route::currentRouteAction();

Comments

Submit
0 Comments