laravel set appends

Solutions on MaxInterview for laravel set appends by the best coders in the world

showing results for - "laravel set appends"
Nila
24 Sep 2020
1return $user->append('is_admin')->toArray();
2
3return $user->setAppends(['is_admin'])->toArray();