@@ -33,14 +33,14 @@ discard block |
||
33 | 33 | * |
34 | 34 | * @var array |
35 | 35 | */ |
36 | - protected $dates = ['created_at', 'updated_at', 'deleted_at']; |
|
36 | + protected $dates = [ 'created_at', 'updated_at', 'deleted_at' ]; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * The attributes that are mass assignable. |
40 | 40 | * |
41 | 41 | * @var array |
42 | 42 | */ |
43 | - protected $fillable = ['name']; |
|
43 | + protected $fillable = [ 'name' ]; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Fields to search in fulltext mode |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @return object |
72 | 72 | */ |
73 | - public function users(){ |
|
73 | + public function users() { |
|
74 | 74 | |
75 | 75 | return $this->hasMany('App\User', 'usergroup_id'); |
76 | 76 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * @param query $query |
82 | 82 | * @return query |
83 | 83 | */ |
84 | - public function scopeRelationships($query){ |
|
84 | + public function scopeRelationships($query) { |
|
85 | 85 | |
86 | 86 | return $query->with('users'); |
87 | 87 | } |