Laravel Nested Controllers and Scope Bindings For Security

preview_player
Показать описание
I want to show you a feature called Nested Resource Controllers, and also how to use it with Route Model Binding correctly.

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

really helpful, I don't know about scope binding. thank you for this video.

hassamulhaq
Автор

Every video I learn new things ! Thank you great work

ramina
Автор

Nice, didn't know about scope bindings! Typically I would create a Policy to check this, and call `$this->authorize(...)`

tannercampbell
Автор

Amazing!!! I was looking for this group scope bind 🎉 thanks so much

DavidSilva-cphg
Автор

Cool, I was looking for some thing like this for a while now

HaiNguyen-cfji
Автор

I always do this check but instead id I use slug. Its more readable

taslimsuman
Автор

This is very useful tip, I tried to implement in my project, but it's not working for show method.

eloquent
Автор

very useful and simple :) thanks a lot!

itsaminj
Автор

Still not sure why would you want to have project id as an url parameter if you can still get the relationship directly from the task. Didn't know about scopedBindings tho, thanks

hansherrera
Автор

Please give me the link to the course to learn more about this topic

faalarcon
Автор

What's your favorite / ideal way to organize routes ? when projects start to grow, it's a bit weird and it doesn't look good when the routes file starts to grow

coipo
Автор

Povilas, in this example whats the advantage of using nested resource controller compared to just using the single resource controller?

andywong
Автор

Hi Povilas. In this new course, will it also cover roles and permissions for each user in each tenancy?

lucasj.pereira
Автор

is there a way for each project to have their own tasks with autoincrementing id starting from 0? (task primary key would be an a non-unique autoincrementing value and the project id)

soniablanche
Автор

Really interesting to see this - did not know it at all. I wonder if there's merit in these nested routes when the task belongs to a single project - if you have the task, then you automatically have easy access to the project. M2m relationships are obviously different. Do you have any thoughts on that?

OnlinePseudonym
Автор

Is it possible to use with slugs for the projects and tasks this way?

dantondelima