I am new to the laravel ,i write one database query which will fetch values from the database and stored into the database it's storing in the form of object but i need to store into the form of array, please help me to achieve this thing.
if(in_array('super-user',$types)){
//my logic
}
My expectation is
$types=['admin','super-user'];