BookStack/app/Model.php

19 lines
434 B
PHP
Raw Normal View History

2021-06-26 23:23:15 +08:00
<?php
namespace BookStack;
use Illuminate\Database\Eloquent\Model as EloquentModel;
class Model extends EloquentModel
{
/**
* Provides public access to get the raw attribute value from the model.
* Used in areas where no mutations are required but performance is critical.
* @return mixed
*/
2021-11-06 08:32:01 +08:00
public function getRawAttribute(string $key)
{
return parent::getAttributeFromArray($key);
}
}