We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 8 | class User extends Model |
||
| 9 | { |
||
| 10 | use CrudTrait; |
||
|
|
|||
| 11 | |||
| 12 | protected $table = 'users'; |
||
| 13 | protected $fillable = ['name', 'email', 'password']; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Get the account details associated with the user. |
||
| 17 | */ |
||
| 18 | public function accountDetails() |
||
| 19 | { |
||
| 20 | return $this->hasOne('Backpack\CRUD\Tests\Unit\Models\AccountDetails'); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get the articles for this user. |
||
| 25 | */ |
||
| 26 | public function articles() |
||
| 27 | { |
||
| 28 | return $this->hasMany('Backpack\CRUD\Tests\Unit\Models\Article'); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the user roles. |
||
| 33 | */ |
||
| 34 | public function roles() |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getNameComposedAttribute() |
||
| 44 |