mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-10-25 06:37:36 +03:00
Reworked some stuff around slugs to use interface in a better way. Also standardised phpdoc to use @return instead of @returns
20 lines
446 B
PHP
20 lines
446 B
PHP
<?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);
|
|
}
|
|
}
|