Support the ongoing development of Laravel.io →
Eloquent
Last updated 1 year 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 1 year 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 1 year ago.
0

Thanks Bro, You saved my day!!

0

Sign in to participate in this thread!

Full Stack Europe

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.

© 2023 Laravel.io - All rights reserved.