How to use Scheduler in the Laravel

Asked

Viewed 168 times

1

I am following the documentation of the Standard to create a Scheduler, but I’m having difficulty. Someone could give a light?

In that command:

php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1

I understand that the path-to-your-project would be the path of my project, in other words, I could enter the project folder and run only the php artisan schedule:run >> /dev/null 2>&1, right?

But the terminal informs that the path does not exist.

inserir a descrição da imagem aqui

The path of my project is c:\projetos\marcelo\painel and that’s even where the Artisan archive is.

  • 1

    I believe it’s the direction to /dev/null the problem. Try not to direct to any corner. The null path used is a standard in the Unix world, not in Windows.

  • What version of the Laravel?

  • I was able to solve by removing the path and leaving it until the 'run'. Thanks guys! The Laravel q use is the 5.3

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.