I am making a console command which I want to schedule I have written the complete code which I wanted but the issue I am facing is that in custom console command when I write.
Auth::user();
It returns
null
. This command is not going to execute into my application due to which it is giving
null
I get that but then I made a static function inside one of my model and returns the id from there to my console command handle function still it is giving me Null any idea on how can I get Auth record in my custom laravel console command. Any help would be great.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire