$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.
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!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community