@@ -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 = 'worlds'; |
10 | 10 | |
11 | - protected $fillable = [ 'galaxy_id', 'map_id', 'name', 'display_name', 'use_whitelist', 'use_blacklist' ]; |
|
11 | + protected $fillable = ['galaxy_id', 'map_id', 'name', 'display_name', 'use_whitelist', 'use_blacklist']; |
|
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,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,5 +8,5 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'worlds_tycoons'; |
10 | 10 | |
11 | - protected $fillable = [ 'world_id', 'tycoon_id' ]; |
|
11 | + protected $fillable = ['world_id', 'tycoon_id']; |
|
12 | 12 | } |
13 | 13 | \ No newline at end of file |
@@ -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 |