Trying to Scheduling Artisan Commands
https://laravel.com/docs/5.0/artisan
* * * * * php /path/to/artisan schedule:run 1>> /dev/null 2>&1
Can someone please show me how do I know the /path/to/artisan
?
Trying to Scheduling Artisan Commands
https://laravel.com/docs/5.0/artisan
* * * * * php /path/to/artisan schedule:run 1>> /dev/null 2>&1
Can someone please show me how do I know the /path/to/artisan
?
extending the answer given by @Alexy Mezenin , to get current working directory on ubuntu use pwd command.
For windows user it may be cd
So if you have a project in desktop/blog.
go to the blog directory and run pwd
command and you'll get the path to artisan which is /home/user/Desktop/blog
Then you'll use this:
* * * * * php /home/user/Desktop/blog/artisan schedule:run 1>> /dev/null 2>&1