Skip to content

Instantly share code, notes, and snippets.

@mrabbani
Last active April 4, 2017 03:54
Show Gist options
  • Save mrabbani/24264e4c30e608da48dedf11bbbd55c3 to your computer and use it in GitHub Desktop.
Save mrabbani/24264e4c30e608da48dedf11bbbd55c3 to your computer and use it in GitHub Desktop.
Laravel task scheduling configuration

Introduction

When you will read about Laravel Task Scheduling, you may confuse how to add Cron entries to your server. This section will help you to rosolve your confusion.

Let's assume your project name is MyBlog and the location of your project is /var/www/MyBlog.

Configuration

  • open your terminal and run crontab -e
  • add * * * * * php /var/www/MyBlog/artisan schedule:run >> /dev/null 2>&1 at the bottom then save and exit.

For more details chekcout this video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment