Skip to content
Advertisement

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

JavaScript

I am using JetStream and Fortify

Thank You

Advertisement

Answer

You can customize user authentication from appProvidersJetStreamServiceProvider.php, on boot method :

JavaScript

See the official Jetstream documentation of Customizing User Authentication

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement