OCBType::class ]; /** * The table associated with the model. * * @var string */ protected $table = 'ocb_content'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'picture', 'content', 'type', 'order', '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); }); } }