Skip to content

Commit

Permalink
Changes to files: app/Models/Data/Package.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dedanirungu committed Oct 20, 2024
1 parent cc8ee33 commit dc54222
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/Models/Data/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function data(Datasetter $datasetter): void
"published" => true,
"featured" => 0,
"is_hidden" => 1,
"ordering" => 1,
]);

$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-month')->value('id');
Expand All @@ -60,6 +61,7 @@ public function data(Datasetter $datasetter): void
"default" => 1,
"featured" => 0,
"is_hidden" => 1,
"ordering" => 10,
]);

$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-hour')->value('id');
Expand All @@ -72,7 +74,7 @@ public function data(Datasetter $datasetter): void
"billing_cycle_id" => $billing_cycle_id,
"amount" => 5,
"published" => true,
"ordering" => 1,
"ordering" => 5,
"featured" => 0,
"is_hidden" => 0,
]);
Expand All @@ -90,6 +92,7 @@ public function data(Datasetter $datasetter): void
"published" => true,
"featured" => 0,
"is_hidden" => 0,
"ordering" => 5,
]);

$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '12-hour')->value('id');
Expand All @@ -105,6 +108,7 @@ public function data(Datasetter $datasetter): void
"published" => true,
"featured" => 0,
"is_hidden" => 0,
"ordering" => 5,
]);

$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-day')->value('id');
Expand All @@ -120,6 +124,7 @@ public function data(Datasetter $datasetter): void
"published" => true,
"featured" => 0,
"is_hidden" => 0,
"ordering" => 5,
]);

$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-week')->value('id');
Expand All @@ -135,6 +140,7 @@ public function data(Datasetter $datasetter): void
"published" => true,
"featured" => 0,
"is_hidden" => 0,
"ordering" => 5,
]);

$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '2-week')->value('id');
Expand All @@ -150,6 +156,7 @@ public function data(Datasetter $datasetter): void
"published" => true,
"featured" => 0,
"is_hidden" => 0,
"ordering" => 5,
]);

$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-month')->value('id');
Expand All @@ -165,6 +172,7 @@ public function data(Datasetter $datasetter): void
"published" => true,
"featured" => 1,
"is_hidden" => 0,
"ordering" => 5,
]);

$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-month')->value('id');
Expand All @@ -181,6 +189,7 @@ public function data(Datasetter $datasetter): void
"published" => true,
"featured" => 0,
"is_hidden" => 1,
"ordering" => 5,
]);

$datasetter->add_data('isp', 'package', 'slug', [
Expand All @@ -196,6 +205,7 @@ public function data(Datasetter $datasetter): void
"published" => true,
"featured" => 0,
"is_hidden" => 1,
"ordering" => 5,
]);

}
Expand Down

0 comments on commit dc54222

Please sign in to comment.