lundi 25 décembre 2017

check authentication on Laravel schedule

I have schedule like this

$schedule->call(function () {
     $mial->getMail(Auth::user()->id);
})->everyMinute();

show me this error

In Kernel.php line 37:

Trying to get property of non-object

When I run this command show me this error again

$schedule->call(function () {
    echo Auth::user()->id;
})->everyMinute();

I need to be check authentication.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2BAThUO
via IFTTT

Aucun commentaire:

Enregistrer un commentaire