Laravel -Set findet an

return $user->append('is_admin')->toArray();

return $user->setAppends(['is_admin'])->toArray();
Asif Patel