@@ -18,6 +18,6 @@ |
||
| 18 | 18 | // Issue to be fixed |
| 19 | 19 | public function scopeValue($query) |
| 20 | 20 | { |
| 21 | - return $query->where('value','=','xyz')->pluck('key'); |
|
| 21 | + return $query->where('value', '=', 'xyz')->pluck('key'); |
|
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | \ No newline at end of file |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * |
| 31 | 31 | * @var array |
| 32 | 32 | */ |
| 33 | - protected $fillable = ['name', 'email', 'password','status']; |
|
| 33 | + protected $fillable = ['name', 'email', 'password', 'status']; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * The attributes excluded from the model's JSON form. |
@@ -55,10 +55,10 @@ discard block |
||
| 55 | 55 | { |
| 56 | 56 | if (Auth::User()->id != 1) |
| 57 | 57 | { |
| 58 | - return $query->where('status','!=', \constStatus::Archive)->where('id','!=',1); |
|
| 58 | + return $query->where('status', '!=', \constStatus::Archive)->where('id', '!=', 1); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - return $query->where('status','!=', \constStatus::Archive); |
|
| 61 | + return $query->where('status', '!=', \constStatus::Archive); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | public function Role_user() |