I am trying to set new value to Model's property but it's not working. I am using dd() right after I set the new value but it keeps the old value.
$business->users()->where('userable_id', $business->id)->where('userable_type', 'App\Models\Business')->first()->first_name = "New";
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire