dimanche 3 novembre 2019

How I Get current user id in Cron job

I try to access id Of Auth user Return: null

public function handle()
    {
          $subcribe = Subscription::where('user_id',auth()->user()->id)->first();

    }


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire