BookStack/app/Model.php

22 lines
460 B
PHP
Raw Normal View History

2021-06-26 17:23:15 +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.
2021-06-26 17:23:15 +02:00
*
* @param $key
2021-06-26 17:23:15 +02:00
*
* @return mixed
*/
public function getRawAttribute($key)
{
return parent::getAttributeFromArray($key);
}
}