/** resources/my_view.blade.php */
{{ request()->id }}
/** resources/my_view.blade.php */
{{ request()->id }}
{{ app('request')->input('a') }}
url('path') . '?' . http_build_query(['param1' => 'value', 'param2' => 'value']);
Route::put('user/{name}', 'UserController@show');
public function update($name)
{
User::where('name', $name)->first();
return view('test')->with('user', $user);
}
Route::get('/posts/{post}/comments/{comment}', function ($postId, $commentId) {
return view('name of the view')->with('postId',$postId);
});