Support the ongoing development of Laravel.io →
Eloquent
Last updated 7 months ago.
0

$model->getAttributes() will return an array of raw attributes (as they are stored in the database), and $model->toArray() will return all the model's raw, mutated, and appended attributes.

Last updated 7 months ago.
0

anlutro said:

$model->getAttributes() will return an array of raw attributes (as they are stored in the database), and $model->toArray() will return all the model's raw, mutated, and appended attributes.

EXCELLENT !! just what I needed, thanks!

Last updated 7 months ago.
0

Thanks Bro, You saved my day!!

0

Sign in to participate in this thread!

Cloudways

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.

© 2022 Laravel.io - All rights reserved.