We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 8 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | class AccountDetails extends Model |
||
10 | { |
||
11 | use CrudTrait; |
||
|
|||
12 | |||
13 | protected $table = 'account_details'; |
||
14 | protected $fillable = ['user_id', 'nickname', 'profile_picture', 'article_id', 'start_date', 'end_date']; |
||
15 | |||
16 | public function identifiableAttribute() |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Get the user for the account details. |
||
23 | */ |
||
24 | public function user() |
||
25 | { |
||
26 | return $this->belongsTo('Backpack\CRUD\Tests\config\Models\User'); |
||
27 | } |
||
28 | |||
29 | public function addresses() |
||
30 | { |
||
31 | return $this->hasMany('Backpack\CRUD\Tests\config\Models\Address'); |
||
32 | } |
||
33 | |||
34 | public function getNicknameComposedAttribute() |
||
35 | { |
||
36 | return $this->nickname.'++'; |
||
37 | } |
||
38 | |||
39 | public function article() |
||
42 | } |
||
43 | |||
44 | public function bangs() |
||
45 | { |
||
46 | return $this->belongsToMany('Backpack\CRUD\Tests\config\Models\Bang'); |
||
47 | } |
||
48 | |||
49 | public function bangsPivot() |
||
52 | } |
||
53 | |||
54 | public function nicknamutator(): Attribute |
||
55 | { |
||
57 | } |
||
58 | } |
||
59 |