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