Answers for "how to create route in laravel"

PHP
1

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
4

laravel get route

Route::get('foo', function () {
    return 'Hello World';
});
Posted by: Guest on March-10-2020
5

route() and with() in laravel

Route::get('user/{id}/profile', function ($id) {
    //
})->name('profile');

$url = route('profile', ['id' => 1, 'photos' => 'yes']);

// /user/1/profile?photos=yes
Posted by: Guest on May-30-2020
1

artisan in route in laravel

Artisan::call('cache:clear')
Posted by: Guest on May-11-2021
3

laravel route

Route::get('user/{id}', function ($id) {
    return 'User '.$id;
});
Posted by: Guest on April-22-2020
0

how to create route in laravel

Route::match(['get', 'post'], '/', function () {
    //
});
Posted by: Guest on May-13-2021

Code answers related to "how to create route in laravel"

Browse Popular Code Answers by Language