for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Rakshitbharat\Queuefy;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Support\ServiceProvider;
class QueuefyServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
if ($this->app->runningInConsole()) {
$this->commands([
ConsoleCommand::class
]);
$this->app->booted(function () {
$schedule = app(Schedule::class);
$schedule->command('queuefy:run')->everyMinute();
});
}
* Register the application services.
public function register()
// Automatically apply the package configuration
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'queuefy');
// Register the main class to use with the facade
$this->app->singleton('queuefy', function () {
return new Queuefy;