Rubenwouters\CrmLauncher\Controllers\DashboardController::launch PHP Method

launch() public method

Updates config record to a valid state after checks
public launch ( ) : Illuminate\Http\RedirectResponse
return Illuminate\Http\RedirectResponse
    public function launch()
    {
        if (!$this->config->exists()) {
            $config = new Configuration();
            $config->save();
            $this->validateTwitter->validTwitterSettings();
        } else {
            $config = $this->config->first();
        }
        $config->valid_credentials = 1;
        $config->save();
        return redirect('/crm/help');
    }