24:25 When i saw that authorize method in StoreMessageRequest, it kind of reminded me of Policies. So then, what is the difference between writing auth guards in the Request vs creating a Policy for each controller method ?
Among many things to understand, the auth method in the request class expects the return type to be either true or false, depending on whatever logic you put in place. This doesn't interfere with writing policy, because using a similar policy it will be easier in that auth method to identify if the current auth->user has permission to perform that action. Second, some controller methods don't expect to have a request class, so policies here play an important role.
As a dev coming Symfony, there are things that I like about Laravel and there are things I don't like. Symfony scaffolding is much less tedious since you generate the controllers and models pretty quickly. The amount of plugins for Laravel is really nice though.
An amazing job
I use docker environment (Devilbox), whenever I use Laravel new command to install the application, it never give me options to select various settings as yours, do I need update Laravel Installer in my environment?
I would like to see more Laravel videos like this. Thank you!
best refresher ❤
Best Channel ever
I start to understand why Laravel is becoming so popular given such quality tutorials 👍