How do I authenticate a user in Laravel 8 Jetstream only if his status is active?
问题 I am building a Laravel 8 application and have successfully implemented authentication. Now I want to check if a user's status is active before logging him in. I have added a field in the users table username varchar password varchar .... status tinyint(1) ... I am using JetStream and Fortify Thank You 回答1: You can customize user authentication from app\Providers\JetStreamServiceProvider.php , on boot method : use App\Models\User; use Illuminate\Http\Request; use Laravel\Fortify\Fortify;