Как получить переменную от URL в Laravel
request('variable')
Mohamad
request('variable')
/** resources/my_view.blade.php */
{{ request()->id }}
{{ app('request')->input('a') }}
public function update($name)
{
User::where('name', $name)->first();
return view('test')->with('user', $user);
}