/** resources/my_view.blade.php */
{{ request()->id }}
/** resources/my_view.blade.php */
{{ request()->id }}
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);
});