Answers for "Laravel Route::current"

PHP
3

laravel get current route name

Route::currentRouteName()
Posted by: Guest on July-24-2020
0

laravel get current route name

Route::getCurrentRoute()->getActionName();
Posted by: Guest on August-26-2020
1

laravel route match

Route::match(['get', 'post'], '/', function () {
    //
});

Route::any('/', function () {
    //
});
Posted by: Guest on October-21-2020
2

laravel route

Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');
Posted by: Guest on October-07-2020

Code answers related to "Laravel Route::current"

Browse Popular Code Answers by Language