adds the role and I'll go ahead and link and socialite

This commit is contained in:
2026-02-16 12:16:53 +01:00
parent 4dc64c22cb
commit 9a10ff4727
12 changed files with 205 additions and 22 deletions

View File

@@ -34,17 +34,17 @@
});
// Dev auto-login route
if (app()->environment('local', 'testing')) {
Route::get('/login-jonathan', function () {
// if (app()->environment('local', 'testing')) {
Route::get('/login-for-testing', function () {
$user = \App\Models\User::where('email', 'jonathan@blijnder.nl')->first();
if (! $user) {
\Illuminate\Support\Facades\Artisan::call('db:seed', ['--class' => 'Database\\Seeders\\JonathanSeeder']);
$user = \App\Models\User::where('email', 'jonathan@blijnder.nl')->first();
}
if (! $user) {
\Illuminate\Support\Facades\Artisan::call('db:seed', ['--class' => 'Database\\Seeders\\JonathanSeeder']);
$user = \App\Models\User::where('email', 'jonathan@blijnder.nl')->first();
}
auth()->login($user);
auth()->login($user);
return redirect('/');
});
}
return redirect('/');
});
// }