We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 5 |
| Total Lines | 38 |
| 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', 'article_id']; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Get the account details associated with the user. |
||
| 17 | */ |
||
| 18 | public function accountDetails() |
||
| 21 | } |
||
| 22 | |||
| 23 | public function article() { |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get the articles for this user. |
||
| 29 | */ |
||
| 30 | public function articles() |
||
| 31 | { |
||
| 32 | return $this->hasMany('Backpack\CRUD\Tests\Unit\Models\Article'); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Get the user roles. |
||
| 37 | */ |
||
| 38 | public function roles() |
||
| 39 | { |
||
| 40 | return $this->belongsToMany('Backpack\CRUD\Tests\Unit\Models\Role', 'user_role'); |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getNameComposedAttribute() |
||
| 46 | } |
||
| 47 | } |
||
| 48 |