]> BookStack Code Mirror - bookstack/blob - app/Model.php
Done a round of phpstan fixes
[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      * @return mixed
13      */
14     public function getRawAttribute(string $key)
15     {
16         return parent::getAttributeFromArray($key);
17     }
18 }