There is no doubt that laravel is one of the best PHP frameworks that we have on the planet now. Have you ever wonder how you can activate and deactivate the account of some users on your websites you build using laravel framework. Take for instance that you have already collected some data from your users, maybe the data include email, password, and some others information. You can create a column for “status” in your table and give it a default value of 0. And in your login using method using a trait, you can do it like this: if (Auth::attempt([‘email’=> $data[‘user_email’], ‘password’=>$data[‘user_password’] ‘status’=>1])) { //handle the rest here