67 lines
2.1 KiB
PHP
67 lines
2.1 KiB
PHP
<?php
|
|||
|
|
|
||
|
|
namespace Database\Seeders;
|
||
|
|
|
||
|
|
use App\Models\Subscription;
|
||
|
|
use Illuminate\Database\Seeder;
|
||
|
|
|
||
|
|
class SubscriptionSeeder extends Seeder
|
||
|
|
{
|
||
|
|
public function run()
|
||
|
|
{
|
||
|
|
$subscriptions = [
|
||
|
|
[
|
||
|
|
'name' => 'Free',
|
||
|
|
'description' => 'Basic access to free proxies',
|
||
|
|
'price' => 0,
|
||
|
|
'duration_days' => 30,
|
||
|
|
'features' => [
|
||
|
|
'Access to basic proxies',
|
||
|
|
'Standard verification interval',
|
||
|
|
'Basic support'
|
||
|
|
],
|
||
|
|
'min_score' => 50,
|
||
|
|
'verification_interval_minutes' => 60,
|
||
|
|
'is_active' => true
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'name' => 'Pro',
|
||
|
|
'description' => 'Enhanced access to high-quality proxies',
|
||
|
|
'price' => 9.99,
|
||
|
|
'duration_days' => 30,
|
||
|
|
'features' => [
|
||
|
|
'Access to premium proxies',
|
||
|
|
'Faster verification interval',
|
||
|
|
'Priority support',
|
||
|
|
'Higher minimum score',
|
||
|
|
'API access'
|
||
|
|
],
|
||
|
|
'min_score' => 80,
|
||
|
|
'verification_interval_minutes' => 30,
|
||
|
|
'is_active' => true
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'name' => 'Enterprise',
|
||
|
|
'description' => 'Full access to all premium features',
|
||
|
|
'price' => 29.99,
|
||
|
|
'duration_days' => 30,
|
||
|
|
'features' => [
|
||
|
|
'Access to all proxies',
|
||
|
|
'Fastest verification interval',
|
||
|
|
'24/7 priority support',
|
||
|
|
'Highest minimum score',
|
||
|
|
'API access',
|
||
|
|
'Custom proxy filtering',
|
||
|
|
'Dedicated support'
|
||
|
|
],
|
||
|
|
'min_score' => 90,
|
||
|
|
'verification_interval_minutes' => 15,
|
||
|
|
'is_active' => true
|
||
|
|
]
|
||
|
|
];
|
||
|
|
|
||
|
|
foreach ($subscriptions as $subscription) {
|
||
|
|
Subscription::create($subscription);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|