Using full component page & access url record in middleware
Lets say i have this route:
right now, if i visit it, i get this:
which is literally a blank html page with that text π€¦ββοΈ
if i change it to this:
now the middleware is not able to access the
$request->payment
model π€¦ββοΈ
how would u solve this?![No description](https://cdn.answeroverflow.com/1214168013381697576/Screenshot_2024-03-04_at_12.09.35.png)
1 Reply
i could solve it by doing
$payment = Payment::findOrFail($request->payment);
in the middleware, but idk, im adding an extra query to the route. not sure, but at the moment is what im doing temporarily