Skip to content

Commit

Permalink
Updated artisan.md
Browse files Browse the repository at this point in the history
  • Loading branch information
psampaz committed Feb 28, 2015
1 parent 125083e commit 6bfa003
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions artisan.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,16 @@ Let's look at a few more scheduling examples:

$schedule->command('foo')->monthly();

#### Job That Runs On Specific Days

$schedule->command('foo')->mondays();
$schedule->command('foo')->tuesdays();
$schedule->command('foo')->wednesdays();
$schedule->command('foo')->thursdays();
$schedule->command('foo')->fridays();
$schedule->command('foo')->saturdays();
$schedule->command('foo')->sundays();

#### Limit The Environment The Jobs Should Run In

$schedule->command('foo')->monthly()->environments('production');
Expand All @@ -138,3 +148,15 @@ Let's look at a few more scheduling examples:
{
return true;
});

#### E-mail The Output Of A Scheduled Job

$schedule->command('foo')->emailOutputTo('[email protected]');

#### Send The Output Of The Scheduled Job To A Given Location

$schedule->command('foo')->sendOutputTo($filePath);

#### Ping A Given URL After The Job Runs

$schedule->command('foo')->thenPing($url);

0 comments on commit 6bfa003

Please sign in to comment.