]> BookStack Code Mirror - bookstack/blob - app/Model.php
Apply fixes from StyleCI
[bookstack] / app / Model.php
1 <?php
2
3 namespace BookStack;
4
5 use Illuminate\Database\Eloquent\Model as EloquentModel;
6
7 class Model extends EloquentModel
8 {
9     /**
10      * Provides public access to get the raw attribute value from the model.
11      * Used in areas where no mutations are required but performance is critical.
12      *
13      * @param $key
14      *
15      * @return mixed
16      */
17     public function getRawAttribute($key)
18     {
19         return parent::getAttributeFromArray($key);
20     }
21 }