2021-06-26 11:23:15 -04:00
|
|
|
<?php
|
|
|
|
|
2023-05-17 12:56:55 -04:00
|
|
|
namespace BookStack\App;
|
2016-04-30 12:16:06 -04: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-11-06 18:00:33 -04:00
|
|
|
*
|
2016-04-30 12:16:06 -04:00
|
|
|
* @return mixed
|
|
|
|
*/
|
2021-11-05 20:32:01 -04:00
|
|
|
public function getRawAttribute(string $key)
|
2016-04-30 12:16:06 -04:00
|
|
|
{
|
|
|
|
return parent::getAttributeFromArray($key);
|
|
|
|
}
|
2018-01-28 11:58:52 -05:00
|
|
|
}
|