diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index 35152a211..b7a5c814f 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -28,7 +28,6 @@ public function handle(Request $request, Closure $next, ...$guards) } else { return redirect(RouteServiceProvider::HOME); } - } } diff --git a/app/Models/User.php b/app/Models/User.php index 78e080657..42e5c7c71 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -4,11 +4,11 @@ use App\Notifications\ResetPassword; use App\Notifications\VerifyEmail; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; -use Illuminate\Notifications\Notifiable; // use Illuminate\Contracts\Auth\MustVerifyEmail; +use Illuminate\Notifications\Notifiable; use Tymon\JWTAuth\Contracts\JWTSubject; -use Illuminate\Database\Eloquent\Factories\HasFactory; class User extends Authenticatable implements JWTSubject //, MustVerifyEmail { diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 33edc1f18..bdea1a32d 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -3,8 +3,8 @@ namespace Database\Factories; use App\Models\User; -use Illuminate\Support\Str; use Illuminate\Database\Eloquent\Factories\Factory; +use Illuminate\Support\Str; class UserFactory extends Factory { diff --git a/tests/Feature/VerificationTest.php b/tests/Feature/VerificationTest.php index faf959b36..bafcf5268 100644 --- a/tests/Feature/VerificationTest.php +++ b/tests/Feature/VerificationTest.php @@ -2,8 +2,8 @@ namespace Tests\Feature; -use App\Notifications\VerifyEmail; use App\Models\User; +use App\Notifications\VerifyEmail; use Illuminate\Auth\Events\Verified; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Notification;