Skip to content

Commit 4634300

Browse files
committed
Update skip route
1 parent b796e9e commit 4634300

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routes/web.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
use App\Http\Controllers\LinkTypeViewController;
99
use App\Http\Controllers\PagesController;
1010
use App\Http\Controllers\InstallerController;
11+
use Illuminate\Support\Facades\Auth;
12+
use App\Models\User;
1113

1214
/*
1315
|--------------------------------------------------------------------------
@@ -38,7 +40,7 @@
3840
Route::post('/mysql', [InstallerController::class, 'mysql'])->name('mysql');
3941
Route::post('/options', [InstallerController::class, 'options'])->name('options');
4042
Route::get('/mysql-test', [InstallerController::class, 'mysqlTest'])->name('mysqlTest');
41-
Route::get('/skip', function () {Artisan::call('db:seed', ['--class' => 'AdminSeeder',]); return redirect(url(''));});
43+
Route::get('/skip', function () {Artisan::call('db:seed', ['--class' => 'AdminSeeder',]); Auth::login(User::where('name', 'admin')->first()); return redirect(url('dashboard'));});
4244
Route::post('/editConfigInstaller', [InstallerController::class, 'editConfigInstaller'])->name('editConfigInstaller');
4345

4446
Route::get('{any}', function() {

0 commit comments

Comments
 (0)