4 months ago

Hello Friends | users table field keeps return true

Posted 4 months ago by Respect

Hello Friends My users Table New Fields Called type (integer) values 1 OR 2 OR 3 OR 4 What ever value 1 2 3 4 keeps return true when i echo data or check the role or this type field Insted of numbers Idont Know why (Notw Field Type in mysql is integer not boolean AND no use any casts or mutation )

// When I use 
auth()->user()->type   // return True Or False  Not Number Like 1 or 2 or 3

It was Working Good but i dont know what happen why return true insted of number value 

Please sign in or create an account to participate in this conversation.