Answers for "laravel serve with router host"

11

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
1

laravel route sub domain routing

Route::domain('{account}.myapp.com')->group(function () {
    Route::get('user/{id}', function ($account, $id) {
        //
    });
});
Posted by: Guest on July-24-2021

Browse Popular Code Answers by Language