Jak uzyskać zmienną z adresu URL w laravele
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);
}