Page::class ]; protected $fillable = [ 'picture', 'text', ]; // protected static function boot() // { // static::creating(function (EncartArg $encartArg) { // if ($encartArg->picture) { // $encartArg->picture = Utils::storeImage($encartArg->picture, $encartArg->getTable()); // } // }); // static::updating(function (EncartArg $encartArg) { // if ($encartArg->picture) { // $encartArg->picture = Utils::storeImage($encartArg->picture, $encartArg->getTable()); // } // }); // parent::boot(); // } }