Answers for "laravel route current"

PHP
3

laravel get current route name

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

get current route in blade laravel

<p> Path: {{ Request::path() }} </p>
Posted by: Guest on October-13-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
0

laravel route

Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) {
    //
});
Posted by: Guest on April-22-2020

Code answers related to "laravel route current"

Browse Popular Code Answers by Language