2021-06-26 23:23:15 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace BookStack;
|
2016-05-01 00:16:06 +08:00
|
|
|
|
|
|
|
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.
|
2021-06-26 23:23:15 +08:00
|
|
|
*
|
2016-05-01 00:16:06 +08:00
|
|
|
* @param $key
|
2021-06-26 23:23:15 +08:00
|
|
|
*
|
2016-05-01 00:16:06 +08:00
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getRawAttribute($key)
|
|
|
|
{
|
|
|
|
return parent::getAttributeFromArray($key);
|
|
|
|
}
|
2018-01-29 00:58:52 +08:00
|
|
|
}
|