Skip to content

Commit a1f16ca

Browse files
Add registerDevCommands helper (#1786)
* add helper method to register dev commands * Update Horizon.php --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent ff64b49 commit a1f16ca

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/Horizon.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,4 +284,16 @@ public static function routeSmsNotificationsTo($number)
284284

285285
return new static;
286286
}
287+
288+
/**
289+
* Register the Horizon dev commands.
290+
*
291+
* @return void
292+
*/
293+
public static function registerDevCommands()
294+
{
295+
if (class_exists(\Illuminate\Foundation\DevCommands::class)) {
296+
\Illuminate\Foundation\DevCommands::artisan('horizon', 'horizon');
297+
}
298+
}
287299
}

0 commit comments

Comments
 (0)