s4uron

Experience

70

0 Best Reply Awards

  • Member Since 1 Week Ago
  • 0 Lessons Completed
  • 0 Favorites

18th May, 2017

s4uron left a reply on Policy Methods Automatically Calling • 1 week ago

@martinbean Thanks a lot I will give it a try.

whats about index?

@thepassenger That would be an extra afford because I'm using Route::resource(..)

s4uron left a reply on Policy Methods Automatically Calling • 1 week ago

push

16th May, 2017

s4uron started a new conversation Policy Methods Automatically Calling • 1 week ago

It would be great if the policy methods get called automatically if they match the method name in the controller.

For example if I have the function public function create() {.....} in my Controller i want the matching Policy public function create(User $user) {...} automatically to be called without writing $this->authorize('create'); in every single method in my controller.

Regards s4uron

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.