Support the ongoing development of Laravel.io →
Eloquent
Last updated 2 years ago.
0

If you're trying to add a column (like your comment says) you need to run a migration: https://laravel.com/docs/5.3/migrations

If you're trying to change the isSomething property on each of your $user objects, make sure you call save after your foreach.

$users->save();

That save all the changes you made to isSomething to your database.

Last updated 7 years ago.
0

No I want to add new element when I get it from the database

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.