@@ -6,18 +6,18 @@ |
||
6 | 6 | |
7 | 7 | class Setting extends Model |
8 | 8 | { |
9 | - protected $table = 'trn_settings'; |
|
9 | + protected $table = 'trn_settings'; |
|
10 | 10 | |
11 | - protected $fillable = [ |
|
12 | - 'key', |
|
13 | - 'value', |
|
14 | - ]; |
|
11 | + protected $fillable = [ |
|
12 | + 'key', |
|
13 | + 'value', |
|
14 | + ]; |
|
15 | 15 | |
16 | - const CREATED_AT = null; |
|
16 | + const CREATED_AT = null; |
|
17 | 17 | |
18 | - // Issue to be fixed |
|
19 | - public function scopeValue($query) |
|
20 | - { |
|
21 | - return $query->where('value','=','xyz')->pluck('key'); |
|
22 | - } |
|
18 | + // Issue to be fixed |
|
19 | + public function scopeValue($query) |
|
20 | + { |
|
21 | + return $query->where('value','=','xyz')->pluck('key'); |
|
22 | + } |
|
23 | 23 | } |
24 | 24 | \ No newline at end of file |
@@ -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 |
@@ -11,10 +11,10 @@ |
||
11 | 11 | |
12 | 12 | protected $fillable = [ |
13 | 13 | 'name', |
14 | - 'alias', |
|
14 | + 'alias', |
|
15 | 15 | 'message', |
16 | - 'status', |
|
17 | - 'updated_by' |
|
16 | + 'status', |
|
17 | + 'updated_by' |
|
18 | 18 | ]; |
19 | 19 | |
20 | 20 | const CREATED_AT = null; |
@@ -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() |
@@ -7,13 +7,13 @@ |
||
7 | 7 | class Role_user extends Model |
8 | 8 | { |
9 | 9 | |
10 | - protected $table = 'role_user'; |
|
10 | + protected $table = 'role_user'; |
|
11 | 11 | |
12 | 12 | public $timestamps = false; |
13 | 13 | |
14 | 14 | protected $fillable = [ |
15 | - 'user_id', |
|
16 | - 'role_id', |
|
15 | + 'user_id', |
|
16 | + 'role_id', |
|
17 | 17 | ]; |
18 | 18 | |
19 | 19 | public function User() |
@@ -6,12 +6,12 @@ |
||
6 | 6 | |
7 | 7 | class Permission_role extends Model |
8 | 8 | { |
9 | - protected $table = 'permission_role'; |
|
9 | + protected $table = 'permission_role'; |
|
10 | 10 | |
11 | - public $timestamps = false; |
|
11 | + public $timestamps = false; |
|
12 | 12 | |
13 | 13 | protected $fillable = [ |
14 | - 'permission_id', |
|
15 | - 'role_id', |
|
14 | + 'permission_id', |
|
15 | + 'role_id', |
|
16 | 16 | ]; |
17 | 17 | } |
18 | 18 | \ No newline at end of file |