vendredi 3 mai 2019

Laravel check is a paid member on all controllers

I have a paid members and general users. I need to check when users logins is paid membership expired or not. Currently I am checking when login redirects to profile page

    if(auth()->user()->type == 'paid' || auth()->user()->type == 'subscriber') {
        $user = PaymentController::checkPaid();
    }

How to check paid on logging in?



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2JcPFz5
via IFTTT

Aucun commentaire:

Enregistrer un commentaire