Answers for "laravel get value from url in blade"

PHP
4

how to get variable from url in laravel

request('variable')
Posted by: Guest on April-04-2021
-1

how to get the url parameter in blade laravel

Route::get('/posts/{post}/comments/{comment}', function ($postId, $commentId) {
    return view('name of the view')->with('postId',$postId);
});
Posted by: Guest on June-19-2021

Code answers related to "laravel get value from url in blade"

Browse Popular Code Answers by Language