@@ -41,29 +41,29 @@ discard block |
||
| 41 | 41 | * |
| 42 | 42 | * @var array |
| 43 | 43 | */ |
| 44 | - protected $dates = ['created_at', 'updated_at', 'deleted_at']; |
|
| 44 | + protected $dates = [ 'created_at', 'updated_at', 'deleted_at' ]; |
|
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * The attributes that are mass assignable. |
| 48 | 48 | * |
| 49 | 49 | * @var array |
| 50 | 50 | */ |
| 51 | - protected $fillable = ['name', 'email', 'password', 'age', 'blacklisted', 'ip', 'activation_code', 'active', |
|
| 52 | - 'fname', 'sname', 'bno', 'city', 'citypart', 'street', 'hno', 'zip', 'registration_data', 'phone']; |
|
| 51 | + protected $fillable = [ 'name', 'email', 'password', 'age', 'blacklisted', 'ip', 'activation_code', 'active', |
|
| 52 | + 'fname', 'sname', 'bno', 'city', 'citypart', 'street', 'hno', 'zip', 'registration_data', 'phone' ]; |
|
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * The attributes excluded from the model's JSON form. |
| 56 | 56 | * |
| 57 | 57 | * @var array |
| 58 | 58 | */ |
| 59 | - protected $hidden = ['password', 'remember_token']; |
|
| 59 | + protected $hidden = [ 'password', 'remember_token' ]; |
|
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * Columns to exclude from index |
| 63 | 63 | * |
| 64 | 64 | * @var array |
| 65 | 65 | */ |
| 66 | - protected $excludedFromIndex = ['password']; |
|
| 66 | + protected $excludedFromIndex = [ 'password' ]; |
|
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | 69 | * Fields to search in fulltext mode |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * |
| 99 | 99 | * @return object |
| 100 | 100 | */ |
| 101 | - public function articles(){ |
|
| 101 | + public function articles() { |
|
| 102 | 102 | |
| 103 | 103 | return $this->hasMany('App\Article', 'user_id'); |
| 104 | 104 | } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * |
| 109 | 109 | * @return object |
| 110 | 110 | */ |
| 111 | - public function usergroups(){ |
|
| 111 | + public function usergroups() { |
|
| 112 | 112 | |
| 113 | 113 | return $this->belongsTo('App\Usergroup', 'usergroup_id'); |
| 114 | 114 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * @param query $query |
| 120 | 120 | * @return query |
| 121 | 121 | */ |
| 122 | - public function scopeRelationships($query){ |
|
| 122 | + public function scopeRelationships($query) { |
|
| 123 | 123 | |
| 124 | 124 | return $query->with('usergroups'); |
| 125 | 125 | } |
@@ -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 | } |