Trouble getting $id from session in laravel
Trouble getting $id from session in laravel I am trying to pass on the value $id through my href to the next page Route: Route::get('/offer-me/{id}', 'OffersController@create')->name('project.detailed'); From View: <a href="{{ route('project.detailed', [$product->id]) }}"><button class="btn btn-success">View</button></p></a> When I go to localhost/projectp0/public/offer-me/2 .... There is no $id value? {"_token":"dSxgM8wTlpNxhDKsqj713KMy656bg8XAU5Q2sqe4","_previous":{"url":"http://localhost/projectp0/public/auction"},"_flash":{"old":,"new":},"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d":1} To get that view i Run: $data = session()->all(); return($data) What is your use case? That could be helpful to get you a proper solution/alternative. – HCK ...