@mstnorris how can i pass data table values into admin? both admin and user have same home web route!
@MSTNORRIS - I want to ask that should I add the isadmin column in user table as boolean and set default to something like
" $tabld->boolean('isadmin')->default('admin'); "
hi, sorry for answer a old Post, but when i put that function isAdmin() ... laravel show an error ... App\Models\User::isAdmin must return a relationship instance.
i follow all the steps writed by @mstnorris.
laravel 8.0 (almost fresh install).
Make sure you're calling the method: isAdmin() and not simply isAdmin which Laravel will interpret as a magic property.
If someone is still searching for same solution, you can separate user login pannel and user login panel, download and see details on github .com/SagarMaheshwary/laravel-multiauth
Please or to participate in this conversation.