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?
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