So erhalten Sie Variable von der URL in Laravel
request('variable')
Mohamad
request('variable')
/** resources/my_view.blade.php */
{{ request()->id }}
/** resources/my_view.blade.php */
{{ request()->id }}
url('path') . '?' . http_build_query(['param1' => 'value', 'param2' => 'value']);
public function update($name)
{
User::where('name', $name)->first();
return view('test')->with('user', $user);
}