mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-11 12:47:54 +08:00
20 lines
441 B
PHP
20 lines
441 B
PHP
<?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
|
|
*/
|
|
public function getRawAttribute(string $key)
|
|
{
|
|
return parent::getAttributeFromArray($key);
|
|
}
|
|
}
|