bro not only sacrificed his time and lifespan to make these videos, his sacrificed the tree branch too . Huge love and respect for what you're doing here Jeff .
Wait, how does the @can blade directive know which Policy's "edit" method to evaluate? Like what if there was also an Employee policy that also has an edit method that accepts $user and $job parameters??
I think you have different names for a different model, i this case its just one policy because is only the Job model, but i have to rewatch the episode, to be sure
Thanks Jeff! It's insane how many Udemy courses charge a lot of money for content that teaches poor practices and ineffective methods for app development. In contrast, this resource is free and provides the right way to learn Laravel. Those so-called teachers should learn from the experts before spreading harmful practices and wasting people's time.
I always forget about policies (I don't know how lol) - but I typically like to do things at the route layer or I in-line an abort_if(..., 403) in the endpoint or if the endpoint accepts a request, sometimes I do the check in the form request authorize() function in a custom form request.
After adding JobPolicy in route and show view, I can see edit button for my created job of authorized once but when I click edit button, I get 403 error.
bro not only sacrificed his time and lifespan to make these videos, his sacrificed the tree branch too .
Huge love and respect for what you're doing here Jeff .
Wait, how does the @can blade directive know which Policy's "edit" method to evaluate? Like what if there was also an Employee policy that also has an edit method that accepts $user and $job parameters??
I think you have different names for a different model, i this case its just one policy because is only the Job model, but i have to rewatch the episode, to be sure
i really really appreciate the effort u guys put in this videos
thank u so much
Thanks Jeff!
It's insane how many Udemy courses charge a lot of money for content that teaches poor practices and ineffective methods for app development. In contrast, this resource is free and provides the right way to learn Laravel.
Those so-called teachers should learn from the experts before spreading harmful practices and wasting people's time.
This is awesome Jeff. Much thanks😎
Have you used Spatie for roles and permissions? Can you do a video on getting that set up?
Can you please upload the rest of the episodes? The Laracasts player keeps throwing errors, and I can't watch more than 2 minutes without it crashing.
I always forget about policies (I don't know how lol) - but I typically like to do things at the route layer or I in-line an abort_if(..., 403) in the endpoint or if the endpoint accepts a request, sometimes I do the check in the form request authorize() function in a custom form request.
I wanted to know how gates work for a long time, I will have to rewatch this episode a few times. But this is well explained.
Jeffrey what's your phpstorm theme?
After adding JobPolicy in route and show view, I can see edit button for my created job of authorized once but when I click edit button, I get 403 error.
❤❤
Jeffrey what's your phpstorm theme?
Thank u 🙏
Great video Jeffrey once again I bow down.
thanks
Who entered the room at 17:17 minutes 😂
Now, this is the most condensed yet informative episode so far, and I'll go for Policies as it looks nicer and fit most of my use cases.
Thanks Jeff!