Answers for "how to get parameter from url in laravel blade"

PHP
4

how to get variable from url in laravel

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

how to get parameter from url in laravel blade

/** resources/my_view.blade.php */

{{ request()->id }}
Posted by: Guest on October-20-2021
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

Code answers related to "how to get parameter from url in laravel blade"

Browse Popular Code Answers by Language