@@ -8,45 +8,45 @@ |
||
8 | 8 | */ |
9 | 9 | class Team extends DsManagerOrm |
10 | 10 | { |
11 | - /** |
|
12 | - * @var string |
|
13 | - */ |
|
14 | - protected $table = 'teams'; |
|
11 | + /** |
|
12 | + * @var string |
|
13 | + */ |
|
14 | + protected $table = 'teams'; |
|
15 | 15 | |
16 | - /** |
|
17 | - * @var array |
|
18 | - */ |
|
19 | - protected $fillable = [ |
|
20 | - 'name', |
|
21 | - 'nationality' |
|
22 | - ]; |
|
16 | + /** |
|
17 | + * @var array |
|
18 | + */ |
|
19 | + protected $fillable = [ |
|
20 | + 'name', |
|
21 | + 'nationality' |
|
22 | + ]; |
|
23 | 23 | |
24 | - /** |
|
25 | - * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
26 | - */ |
|
27 | - public function roster() |
|
28 | - { |
|
29 | - return $this->hasMany(Player::class); |
|
30 | - } |
|
24 | + /** |
|
25 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
26 | + */ |
|
27 | + public function roster() |
|
28 | + { |
|
29 | + return $this->hasMany(Player::class); |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
34 | - */ |
|
35 | - public function coach() |
|
36 | - { |
|
37 | - return $this->hasOne(Coach::class); |
|
38 | - } |
|
32 | + /** |
|
33 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
34 | + */ |
|
35 | + public function coach() |
|
36 | + { |
|
37 | + return $this->hasOne(Coach::class); |
|
38 | + } |
|
39 | 39 | |
40 | - /** |
|
41 | - * @param $query |
|
42 | - * @return mixed |
|
43 | - */ |
|
44 | - public function scopeComplete($query) |
|
45 | - { |
|
46 | - return $query->with( |
|
47 | - 'roster', |
|
48 | - 'coach' |
|
49 | - ); |
|
50 | - } |
|
40 | + /** |
|
41 | + * @param $query |
|
42 | + * @return mixed |
|
43 | + */ |
|
44 | + public function scopeComplete($query) |
|
45 | + { |
|
46 | + return $query->with( |
|
47 | + 'roster', |
|
48 | + 'coach' |
|
49 | + ); |
|
50 | + } |
|
51 | 51 | |
52 | 52 | } |
53 | 53 | \ No newline at end of file |