@if(app()->isLocal()) Wave Installation @if(Request::get('complete')) @php \Illuminate\Support\Facades\Artisan::call('db:seed', [ '--force' => true ]); \Illuminate\Support\Facades\Artisan::call('storage:link'); Auth::login(\App\Models\User::first()); // Remove everything in the public/composer directory $composerDir = public_path('/composer'); if (file_exists($composerDir)) { $files = glob($composerDir.'/*'); foreach ($files as $file) { if (is_file($file)) { unlink($file); } } } // Remove the composer directory if (file_exists($composerDir)) { rmdir($composerDir); } @endphp

Successfully Installed 🎉

Click the continue button below to view your new SAAS application.

Continue
@else @php try { $user = \App\Models\User::first(); header('Location: /'); exit; } catch (\Illuminate\Database\QueryException $e) { // Continue with the installation process } // Make sure the database directory exists $databaseDir = dirname(database_path('database.sqlite')); if (!\Illuminate\Support\Facades\File::exists($databaseDir)) { \Illuminate\Support\Facades\File::makeDirectory($databaseDir, 0755, true); } if (!\Illuminate\Support\Facades\File::exists(database_path('database.sqlite'))) { \Illuminate\Support\Facades\File::put(database_path('database.sqlite'), ''); } \Illuminate\Support\Facades\Artisan::call('migrate', [ '--force' => true ]); @endphp

Welcome to Wave

If you're ready to get started, click on the 'Install Wave' button below. In this future this installation screen will have a few setup options.

Install Wave
@endif @endif