2016-04-30 18:16:06 +02: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.
|
|
|
|
* @param $key
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getRawAttribute($key)
|
|
|
|
{
|
|
|
|
return parent::getAttributeFromArray($key);
|
|
|
|
}
|
2018-01-28 17:58:52 +01:00
|
|
|
}
|