picture) { $pictoBrand->picture = Utils::storeImage($pictoBrand->picture, $pictoBrand->getTable()); } }); static::updating(function (PictoBrand $pictoBrand) { if ($pictoBrand->picture) { $pictoBrand->picture = Utils::storeImage($pictoBrand->picture, $pictoBrand->getTable()); } }); parent::boot(); } }