Answers for "laravel get parameter value from url"

PHP
0

get value mentthod get laravel

Input::get('lastName') ;
//lastName is variable in view
Posted by: Guest on September-22-2020
0

laravel get all request parameters

$request->input('name');
$request->input('user.name'); // fetch from user object
Posted by: Guest on November-13-2020
1

laravel get url parameters in controller

public function update($name)
{
    User::where('name', $name)->first();
    return view('test')->with('user', $user);
}
Posted by: Guest on February-22-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 parameter value from url"

Browse Popular Code Answers by Language