Category: Laravel

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
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners