OCBType::class ]; protected $table = 'ocb_content'; protected $fillable = [ 'picture', 'content', 'type', 'order', 'status' ]; protected static function booted() { static::creating(function ($ocbContent) { $ocbContent->content = clean($ocbContent->content); }); static::updating(function ($ocbContent) { $ocbContent->content = clean($ocbContent->content); }); } }