MarvinLabs\SetupWizard\Steps\DatabaseStep::apply PHP Méthode

apply() public méthode

public apply ( $formData )
    public function apply($formData)
    {
        try {
            if ($this->isChecked($formData, 'refresh_db')) {
                \Artisan::call('migrate:refresh');
            } else {
                \Artisan::call('migrate');
            }
            if ($this->isChecked($formData, 'enable_seeding')) {
                \Artisan::call('db:seed');
            }
        } catch (Exception $e) {
            $this->addError('exception', $e->getMessage());
            return false;
        }
        return true;
    }