adds the role and I'll go ahead and link and socialite
This commit is contained in:
@@ -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('/');
|
||||
});
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user