lundi 2 décembre 2019

authorizeResource for not logged-in users in laravel

While in policy class I have

public function create(User $user)
{
    return true;
}

but I get unauthorized error for unauthenticated users.

So how can I exclude the store method from authorization in authorizeResource?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire