info(trim(Artisan::output())); } $this->info('All caches cleared!'); })->purpose('Clear all caches.'); /** * Wipe, migrate, and seed the database. */ Artisan::command('dev:reset', function () { /** @phpstan-ignore-next-line */ assert($this instanceof ClosureCommand); $commands = ['db:wipe', 'migrate', 'db:seed']; foreach ($commands as $command) { Artisan::call($command); $this->info(trim(Artisan::output())); } $this->info('Database reset complete!'); })->purpose('Wipe, migrate, and seed the database.'); }