I'm trying to find this information on the Laravel docs an other sites but I can't find an answer for this. If I'm using an observer, and during the creating method I change something on the object, does it stores automatically the changes?
For example:
public function creating(Company $company)
{
$company->someProp = 1;
}
It will save the changes before the creation? Is not necessary to execute a method like save or something?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire