I'm using the Form Request classes to validate data being passed into my controllers.
Additionally, I'm using Policies to determine if a current user is allowed to show
/ update
/ destroy
etc the object in question.
If I am using Policies, does this mean I can simply use:
public function authorize()
{
return true;
}
within my Request classes? Or should I be doing the check twice / writing them in different ways?
If someone could shed some light on this, that would be great.
Thanks.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1QXqtLN
via IFTTT
Aucun commentaire:
Enregistrer un commentaire