D
Size: a a a
D
e
e
e
R#
R#
D
public function geIconAttribute()
{
return $this->getIcon();
}
e
e
R#
D
e
R#
D
e
e
R#
D
dd($alerts->toArray());
D
If you would like these computed values to be added to the array / JSON representations of your model, you will need to append them.https://laravel.com/docs/8.x/eloquent-serialization#appending-values-to-json
e
dd($alerts->toArray());