]> BookStack Code Mirror - bookstack/blob - app/Model.php
Updated Spanish translation
[bookstack] / app / Model.php
1 <?php namespace BookStack;
2
3 use Illuminate\Database\Eloquent\Model as EloquentModel;
4
5 class Model extends EloquentModel
6 {
7
8     /**
9      * Provides public access to get the raw attribute value from the model.
10      * Used in areas where no mutations are required but performance is critical.
11      * @param $key
12      * @return mixed
13      */
14     public function getRawAttribute($key)
15     {
16         return parent::getAttributeFromArray($key);
17     }
18 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.