You can get it in the controller and pass it as a parameters to the view (even if $_GET is possible in the view, it's better to use the $request->get() method inside a controller). If you need it everywhere, you can add it inside a middleware with view()->share('key','value') edit: here, you'll have in the prototype of your method index() the paremeters index(Request $request, $id) right ? so just when you return the view : return view('myview', ['id' => $id])
$_GET is possible in the view, it's better to use the$request->get()method inside a controller). If you need it everywhere, you can add it inside a middleware withview()->share('key','value')edit: here, you'll have in the prototype of your method index() the paremetersindex(Request $request, $id)right ? so just when you return the view :return view('myview', ['id' => $id])