DansLesPresType::class ]; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'picture', // * Only youtube for now ( vu avec sylvain ) 'video_link', 'content', 'type', 'order', 'isVideo', 'status' ]; /** * Perform any actions required after the model boots. * * @return void */ protected static function booted() { static::creating(function ($ocbContent) { $ocbContent->content = clean($ocbContent->content); }); static::updating(function ($ocbContent) { $ocbContent->content = clean($ocbContent->content); }); } }