Malcolm Turntbull
Does Filament change Laravel's default Route Model Binding?
https://docs.google.com/document/d/19YhjppE5qSw4v1xqaDQFiuHmEjiPCpJyfFOHHY21YTE/edit?usp=sharing this is the start of my documentation, I'll write it in here for now, and eventually publish on Medium.
32 replies
Does Filament change Laravel's default Route Model Binding?
This whole thing has been such a handbrake on my project, I'm writing some documentation on how it all actually works - only baby steps so far, as I clearly don't actually understand wtf I am doing, but if I am running into these sorts of misunderstandings, then it's guaranteed other people are as well, and I've spent... WEEKS looking at documentation on this.
32 replies
Does Filament change Laravel's default Route Model Binding?
I have foolishly believed that if there is DI happening, that it must be the SC doing it. And that if the SC was able to resolve a specific instance of a Model, then it was Route Model Binding doing it.
32 replies
Does Filament change Laravel's default Route Model Binding?
I have also clearly misunderstood the Laravel documentation - when it says "The Laravel service container is a powerful tool for managing class dependencies and performing dependency injection", it does not mean that it is THE tool for managing dependency injection.
32 replies
Does Filament change Laravel's default Route Model Binding?
So when Filament is injecting the correct model in that instance, it's doing so via its own methodology, and has nothing to do with the container, OR route model bindings (which I don't think actually work at all in Filament, because we're not using Controllers?)
32 replies
Does Filament change Laravel's default Route Model Binding?
I've tried cleaning up the code to make it more obvious as to what goes where, and I've also commented all the various attempts that do and do not work:
Is there a limit on the number of times a record can be injected? Or do nested injections not work? I'm losing my mind here, what am I doing wrong?
32 replies