DEV Community

Discussion on: Welcome Thread - v162

Collapse
 
mikecarolan profile image
Mike-Carolan

Hey Yannick - I'm a PHP/Laravel developer as well. I have both MySQL and PostgreSQL backend experience as well. So my newest ambition is to create Laravel policies... should be fun :) Looks like it is pretty well documented. Have you implemented them yet? If so - any pointers/roadblocks?
Cheers!
Mike

Collapse
 
osteel profile image
Yannick Chenot

Hey Mike! Yeah policies are well documented, but if I had a recommendation to make it'd be to handle authorisation in form request objects (also used for validation) instead of controllers. This way you keep your controller methods clean and lean

Thread Thread
 
mikecarolan profile image
Mike-Carolan

Thank you Yannick!!!!