Edit File: RefreshDatabase.php
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Spatie\Sitemap\SitemapGenerator; use Illuminate\Support\Facades\Artisan; class RefreshDatabase extends Command { /** * The console command name. * * @var string */ protected $signature = 'database:refresh'; /** * The console command description. * * @var string */ protected $description = 'refresh database migrations with seeds'; /** * Execute the console command. * * @return mixed */ public function handle() { Artisan::call('migrate:refresh --seed'); Artisan::call('passport::install'); $this->info('The migrate fresh Generated Successfully .'); } }
Back to File Manager