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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners