BookStack/app/App/Model.php

20 lines
445 B
PHP
Raw Normal View History

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