Devise\Support\Console\DeviseResetCommand::handle PHP Метод

handle() публичный Метод

Run the package migrations.
public handle ( )
    public function handle()
    {
        $migrations = $this->app->make('migration.repository');
        if (!$migrations->repositoryExists()) {
            $migrations->createRepository();
        }
        $refreshDB = $this->askAboutRefreshingDatabase();
        if ($refreshDB == 'yes') {
            if ($this->askAboutExcludingUsersTable() == 'yes') {
                $this->excludeTables[] = 'users';
                $this->excludeTables[] = 'group_user';
            }
            $this->dropDatabaseTables();
            $this->call('devise:migrate');
            $this->call('migrate');
            $this->call('devise:seed');
            $this->call('db:seed');
        }
    }