Support the ongoing development of Laravel.io →
Routing Laravel Middleware
0
moderator

I think that the problem is that the volt binding does not inject the class and with that will not resolve the product. I suspect you will not see a query to retrieve the product from the database.

Personal I haven't used Volt but I suspect you need to $this->authorize way that you already find (or maybe another way more matching your situation).

0

@tvbeek Thanks for your fast reply. I think you are right and there is sadly no support for model binding in Volt.

tvbeek liked this reply

1

Sign in to participate in this thread!

Eventy

Your banner here too?

Patrick pa2codes Joined 18 Apr 2024

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.