#!/usr/bin/env php make(Illuminate\Contracts\Console\Kernel::class); Illuminate\Console\Application::starting(function ($artisan) { $artisan->resolveCommands([ \Dcat\Admin\Tests\Console\InstallCommand::class, ]); }); $app->booting(function () use ($app) { $app['env'] = 'local'; $app->register(\Laravel\Dusk\DuskServiceProvider::class); $app->register(\BeyondCode\DuskDashboard\DuskDashboardServiceProvider::class); }); $status = $kernel->handle( $input = new Symfony\Component\Console\Input\ArgvInput, new Symfony\Component\Console\Output\ConsoleOutput ); /* |-------------------------------------------------------------------------- | Shutdown The Application |-------------------------------------------------------------------------- | | Once Artisan has finished running, we will fire off the shutdown events | so that any final work may be done by the application before we shut | down the process. This is the last thing to happen to the request. | */ $kernel->terminate($input, $status); exit($status);