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 | 39 |
Duplicated Lines | 0 % |
Changes | 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() |
||
24 | { |
||
25 | return $this->belongsTo('Backpack\CRUD\Tests\Unit\Models\Article'); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Get the articles for this user. |
||
30 | */ |
||
31 | public function articles() |
||
32 | { |
||
33 | return $this->hasMany('Backpack\CRUD\Tests\Unit\Models\Article'); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Get the user roles. |
||
38 | */ |
||
39 | public function roles() |
||
42 | } |
||
43 | |||
44 | public function getNameComposedAttribute() |
||
47 | } |
||
48 | } |
||
49 |