1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-13 05:42:30 +03:00

Played around with a new app structure

This commit is contained in:
Dan Brown
2023-05-17 17:56:55 +01:00
parent 573bc3ec45
commit 295cd01605
280 changed files with 839 additions and 789 deletions

19
app/App/Model.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
namespace BookStack\App;
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);
}
}