. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. namespace App\Providers; use App\Console\Commands\MigrateFreshAllCommand; use Illuminate\Support\ServiceProvider; class MigrationServiceProvider extends ServiceProvider { /** * Register the service provider. * * @return void */ public function register() { $this->app->extend('command.migrate.fresh', function () { return new MigrateFreshAllCommand(); }); } }