Extending the answer given by @Alexy Mezenin to get the current working directory on ubuntu, use the pwd command .
For Windows users, this may be cd
So, if you have a project in your desktop / blog . go to the directory on the blog and run the pwd and you will get the path to the artisan, which is / home / user / Desktop / blog . >
Then you will use this:
* * * * * php /home/user/Desktop/blog/artisan schedule:run 1>> /dev/null 2>&1
source share