Skip to content

PHP code snippet – How to create route in laravel?

use App\Http\Controllers\PagesController;

// Create route for About Page
Route::get('about-us', [PagesController::class, 'aboutPage'])->name('pages.about');
See also  How to make a class in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.