laravel request get parameter from url code example
Example 1: how get some parameter from request in laravel
$data = $request->only(
'project_name',
'project_code',
'block_count',
'unit_count',
'contractor_name',
);
Example 2: laravel get url parameters in controller
public function update($name)
{
User::where('name', $name)->first();
return view('test')->with('user', $user);
}