How to access resource from resource?
Help me, i want to access resource from resource
i want to create "promo" from cars
expected url like:
http://127.0.0.1:8000/car/{carId}/promos
so, when i create new promo, it will be related the car_id
this is my code:
this is the result:
Route [filament.admin.resources.car.promos.view] not defined.
i have 2 models:
"Cars" and "Promo"
can u help me? thanks5 Replies
So you are looking for nested resources? There are packages for it. It's not a core feature.
what package Sir?
did you mean this package Sir?
https://github.com/laraxot/filament-nested-resources/tree/master
GitHub
GitHub - laraxot/filament-nested-resources
Contribute to laraxot/filament-nested-resources development by creating an account on GitHub.
There are multiple. I haven’t tried any so I can’t recommend one.
okey, thankyou