Laarvel auth Tricks

Browse latest tricks and tips on Laarvel auth.

Check user type in laravel

Add a type field in your auth table, once you added it save user type and check user type in Laravel using below code\Auth::user()->type // Returns logged in user typeRedirect u ...
published on : 10 hours ago 12 Comments