@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class BaseModel extends Model |
8 | 8 | { |
9 | - protected $dateFormat ='Y-m-d H:i:s'; |
|
9 | + protected $dateFormat = 'Y-m-d H:i:s'; |
|
10 | 10 | |
11 | 11 | protected $casts = [ |
12 | 12 | 'created_at' => 'datetime:Y-m-d H:i:s', |
@@ -8,9 +8,9 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'galaxies'; |
10 | 10 | |
11 | - protected $fillable = [ 'galaxy_type_id', 'galaxy_owner_id', 'name', 'display_name']; |
|
11 | + protected $fillable = ['galaxy_type_id', 'galaxy_owner_id', 'name', 'display_name']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at']; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | |
15 | 15 | public function type() |
16 | 16 | { |
@@ -8,9 +8,9 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = "galaxy_types"; |
10 | 10 | |
11 | - protected $fillable = [ 'name', 'display_name' ]; |
|
11 | + protected $fillable = ['name', 'display_name']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at']; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | |
15 | 15 | public function galaxy() |
16 | 16 | { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'building_classes'; |
10 | 10 | |
11 | - protected $fillable = [ 'building_type_id', 'system_faction_id' ]; |
|
11 | + protected $fillable = ['building_type_id', 'system_faction_id']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at' ]; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | } |
15 | 15 | \ No newline at end of file |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = "map_buildings"; |
10 | 10 | |
11 | - protected $fillable = [ 'map_id', 'location_x', 'location_y', 'building_class_id', 'building_id', 'deterioration_level' ]; |
|
11 | + protected $fillable = ['map_id', 'location_x', 'location_y', 'building_class_id', 'building_id', 'deterioration_level']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at' ]; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | } |
15 | 15 | \ No newline at end of file |
@@ -8,9 +8,9 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'maps'; |
10 | 10 | |
11 | - protected $fillable = [ 'map_category_id', 'name', 'display_name', 'map_x', 'map_y', 'location', 'filename' ]; |
|
11 | + protected $fillable = ['map_category_id', 'name', 'display_name', 'map_x', 'map_y', 'location', 'filename']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at']; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | |
15 | 15 | public function category() |
16 | 16 | { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'tycoon_companies'; |
10 | 10 | |
11 | - protected $fillable = [ 'tycoon_id', 'system_faction_id', 'name' ]; |
|
11 | + protected $fillable = ['tycoon_id', 'system_faction_id', 'name']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated' ]; |
|
13 | + protected $dates = ['created_at', 'updated']; |
|
14 | 14 | } |
15 | 15 | \ No newline at end of file |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'tycoons_online'; |
10 | 10 | |
11 | - protected $fillable = [ 'tycoon_id' ]; |
|
11 | + protected $fillable = ['tycoon_id']; |
|
12 | 12 | |
13 | - protected $dates = [ 'last_request' ]; |
|
13 | + protected $dates = ['last_request']; |
|
14 | 14 | } |
15 | 15 | \ No newline at end of file |
@@ -8,9 +8,9 @@ discard block |
||
8 | 8 | { |
9 | 9 | protected $table = 'tycoons'; |
10 | 10 | |
11 | - protected $fillable = [ 'user_id', 'name', 'cash' ]; |
|
11 | + protected $fillable = ['user_id', 'name', 'cash']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at' ]; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | |
15 | 15 | public function worlds() |
16 | 16 | { |
@@ -24,6 +24,6 @@ discard block |
||
24 | 24 | |
25 | 25 | public function scopeInitial($query, $initial) |
26 | 26 | { |
27 | - return $query->where('name', 'LIKE', $initial . '%'); |
|
27 | + return $query->where('name', 'LIKE', $initial.'%'); |
|
28 | 28 | } |
29 | 29 | } |
30 | 30 | \ No newline at end of file |