@@ -1,42 +0,0 @@ | |||||
<?php | |||||
namespace App\Console\Commands; | |||||
use Illuminate\Console\Command; | |||||
class ResetTestUsers extends Command | |||||
{ | |||||
/** | |||||
* The name and signature of the console command. | |||||
* | |||||
* @var string | |||||
*/ | |||||
protected $signature = 'command:name'; | |||||
/** | |||||
* The console command description. | |||||
* | |||||
* @var string | |||||
*/ | |||||
protected $description = 'Command description'; | |||||
/** | |||||
* Create a new command instance. | |||||
* | |||||
* @return void | |||||
*/ | |||||
public function __construct() | |||||
{ | |||||
parent::__construct(); | |||||
} | |||||
/** | |||||
* Execute the console command. | |||||
* | |||||
* @return int | |||||
*/ | |||||
public function handle() | |||||
{ | |||||
return 0; | |||||
} | |||||
} |
@@ -0,0 +1,257 @@ | |||||
<?php | |||||
namespace App\Console\Commands; | |||||
use Illuminate\Console\Command; | |||||
use App\Models\Service; | |||||
class ServicesInit extends Command | |||||
{ | |||||
/** | |||||
* The name and signature of the console command. | |||||
* | |||||
* @var string | |||||
*/ | |||||
protected $signature = 'services:init'; | |||||
/** | |||||
* The console command description. | |||||
* | |||||
* @var string | |||||
*/ | |||||
protected $description = 'Generate inital services'; | |||||
/** | |||||
* Create a new command instance. | |||||
* | |||||
* @return void | |||||
*/ | |||||
public function __construct() | |||||
{ | |||||
parent::__construct(); | |||||
} | |||||
/** | |||||
* Execute the console command. | |||||
* | |||||
* @return int | |||||
*/ | |||||
public function handle() | |||||
{ | |||||
$this->youtube(); | |||||
$this->instagram(); | |||||
$this->twitter(); | |||||
$this->tiktok(); | |||||
} | |||||
protected function youtube() { | |||||
$s = new Service; | |||||
$s->name = 'Unique Views'; | |||||
$s->type = 'views'; | |||||
$s->site = 'youtube'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->supplier_id = 2997; | |||||
$s->maximum = 500000; | |||||
$s->minimum = 1000; | |||||
$s->price = 600; | |||||
$s->available = true; | |||||
$s->save(); | |||||
$s = new Service; | |||||
$s->name = 'Language Targeted Views'; | |||||
$s->type = 'views'; | |||||
$s->site = 'youtube'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->modifier = 'language'; | |||||
$s->maximum = 100000; | |||||
$s->minimum = 1000; | |||||
$s->price = 600; | |||||
$s->available = true; | |||||
$s->note = '{language: { | |||||
french: 2974, spanish: 2975, german: 2976, | |||||
}}'; | |||||
$s->save(); | |||||
$s = new Service; | |||||
$s->name = 'Location Targeted Views'; | |||||
$s->site = 'youtube'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->modifier = 'location'; | |||||
$s->maximum = 1000; | |||||
$s->minimum = 100000; | |||||
$s->price = 650; | |||||
$s->note = '{locations: { | |||||
india: 2600, brazil: 2597, colombia: 2608, philippines: 2609, mexico: | |||||
2673, netherlands: 2771, russia: 2772, spain: 2773, hongkong: 3065, | |||||
israel: 3119, }}'; | |||||
$s->available = true; | |||||
$s->description = 'Real impressionss and profile visits'; | |||||
$s->save(); | |||||
$s = new Service; | |||||
$s->name = 'Likes'; | |||||
$s->site = 'youtube'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->maximum = 100000; | |||||
$s->minimum = 50; | |||||
$s->price = 850; | |||||
$s->available = true; | |||||
$s->save(); | |||||
$s = new Service; | |||||
$s->name = 'Comments'; | |||||
$s->site = 'youtube'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->maximum = 500000; | |||||
$s->minimum = 10; | |||||
$s->price = 2000; | |||||
$s->available = true; | |||||
$s->save(); | |||||
} | |||||
protected function instagram() { | |||||
$s = new Service; | |||||
$s->name = 'Likes with Profile Visits'; | |||||
$s->type = 'likes'; | |||||
$s->site = 'instagram'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->supplier_id = 2997; | |||||
$s->maximum = 500000; | |||||
$s->minimum = 1000; | |||||
$s->price = 700; | |||||
$s->available = true; | |||||
$s->save(); | |||||
$s = new Service; | |||||
$s->name = 'Likes'; | |||||
$s->type = 'likes'; | |||||
$s->site = 'instagram'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->supplier_id = 3775; | |||||
$s->maximum = 50000; | |||||
$s->minimum = 100; | |||||
$s->price = 50; | |||||
$s->available = true; | |||||
$s->save(); | |||||
$s = new Service; | |||||
$s->name = 'Post Impressions'; | |||||
$s->type = 'impressions'; | |||||
$s->site = 'instagram'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->supplier_id = 618; | |||||
$s->maximum = 1000000; | |||||
$s->minimum = 100; | |||||
$s->price = 100; | |||||
$s->available = true; | |||||
$s->description = 'Post impressions and visits'; | |||||
$s->save(); | |||||
$s = new Service; | |||||
$s->name = 'Profile Visits'; | |||||
$s->type = 'profile'; | |||||
$s->site = 'instagram'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->supplier_id = 2997; | |||||
$s->maximum = 500000; | |||||
$s->minimum = 100; | |||||
$s->price = 100; | |||||
$s->available = true; | |||||
$s->save(); | |||||
$s = new Service; | |||||
$s->name = 'Post Views'; | |||||
$s->type = 'views'; | |||||
$s->site = 'instagram'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->supplier_id = 2840; | |||||
$s->maximum = 10000000; | |||||
$s->minimum = 100; | |||||
$s->price = 50; | |||||
$s->available = true; | |||||
$s->save(); | |||||
} | |||||
protected function twitter() { | |||||
$s = new Service; | |||||
$s->name = 'Video Views'; | |||||
$s->type = 'views'; | |||||
$s->site = 'twitter'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->supplier_id = 287; | |||||
$s->maximum = 1000000; | |||||
$s->minimum = 100; | |||||
$s->price = 90; | |||||
$s->available = true; | |||||
$s->save(); | |||||
$s = new Service; | |||||
$s->name = 'Impressions'; | |||||
$s->type = 'impressions'; | |||||
$s->site = 'twitter'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->supplier_id = 288; | |||||
$s->maximum = 1000000; | |||||
$s->minimum = 100; | |||||
$s->price = 500; | |||||
$s->available = true; | |||||
$s->save(); | |||||
$s = new Service; | |||||
$s->name = 'Followers'; | |||||
$s->type = 'followers'; | |||||
$s->site = 'twitter'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->supplier_id = 3820; | |||||
$s->maximum = 10000; | |||||
$s->minimum = 10; | |||||
$s->price = 400; | |||||
$s->available = true; | |||||
$s->save(); | |||||
} | |||||
protected function tiktok() { | |||||
$s = new Service; | |||||
$s->name = 'Views'; | |||||
$s->type = 'views'; | |||||
$s->site = 'tiktok'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->supplier_id = 3826; | |||||
$s->maximum = 10000000; | |||||
$s->minimum = 100; | |||||
$s->price = 70; | |||||
$s->available = true; | |||||
$s->save(); | |||||
$s = new Service; | |||||
$s->name = 'Likes'; | |||||
$s->type = 'likes'; | |||||
$s->site = 'tiktok'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->supplier_id = 3935; | |||||
$s->maximum = 100000; | |||||
$s->minimum = 100; | |||||
$s->price = 300; | |||||
$s->available = true; | |||||
$s->save(); | |||||
$s = new Service; | |||||
$s->name = 'Followers'; | |||||
$s->type = 'followers'; | |||||
$s->site = 'tiktok'; | |||||
$s->supplier = 'smmkings'; | |||||
$s->supplier_id = 3934; | |||||
$s->maximum = 100000; | |||||
$s->minimum = 20; | |||||
$s->price = 300; | |||||
$s->available = true; | |||||
$s->save(); | |||||
} | |||||
} | |||||
@@ -13,7 +13,7 @@ class Kernel extends ConsoleKernel | |||||
* @var array | * @var array | ||||
*/ | */ | ||||
protected $commands = [ | protected $commands = [ | ||||
// | Commands\ServicesInit::class | ||||
]; | ]; | ||||
/** | /** | ||||
@@ -20,161 +20,6 @@ class DatabaseSeeder extends Seeder | |||||
public function run() | public function run() | ||||
{ | { | ||||
Stripe::setApiKey(env('STRIPE_SECRET')); | Stripe::setApiKey(env('STRIPE_SECRET')); | ||||
Service::create([ | |||||
'name' => 'Unique Views with Engagements', | |||||
'type' => 'views', | |||||
'site' => 'youtube', | |||||
'minimum' => 1000, | |||||
'maximum' => 500000, | |||||
'price' => 11, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Language Targeted Views', | |||||
'type' => 'views', | |||||
'site' => 'youtube', | |||||
'modifier' => 'language', | |||||
'minimum' => 1000, | |||||
'maximum' => 100000, | |||||
'price' => 20, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Location Targeted Views', | |||||
'type' => 'views', | |||||
'site' => 'youtube', | |||||
'modifier' => 'location', | |||||
'minimum' => 1000, | |||||
'maximum' => 100000, | |||||
'price' => 25, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Random Comments', | |||||
'type' => 'comments', | |||||
'site' => 'youtube', | |||||
'minimum' => 100, | |||||
'maximum' => 10000, | |||||
'price' => 55, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Subscribers', | |||||
'type' => 'subscribers', | |||||
'site' => 'youtube', | |||||
'minimum' => 100, | |||||
'maximum' => 10000, | |||||
'price' => 50, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Likes', | |||||
'type' => 'likes', | |||||
'site' => 'youtube', | |||||
'minimum' => 1000, | |||||
'maximum' => 100000, | |||||
'price' => 30, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Likes', | |||||
'type' => 'likes', | |||||
'site' => 'instagram', | |||||
'minimum' => 200, | |||||
'maximum' => 10000, | |||||
'price' => 15, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Impressions With Profile Visits', | |||||
'type' => 'impressions', | |||||
'site' => 'instagram', | |||||
'minimum' => 200, | |||||
'maximum' => 20000, | |||||
'price' => 35, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Post Impressions', | |||||
'type' => 'impressions', | |||||
'site' => 'instagram', | |||||
'minimum' => 1000, | |||||
'maximum' => 1000000, | |||||
'price' => 6, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Profile Visits', | |||||
'type' => 'profile', | |||||
'site' => 'instagram', | |||||
'minimum' => 1000, | |||||
'maximum' => 100000, | |||||
'price' => 6, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Followers', | |||||
'type' => 'followers', | |||||
'site' => 'twitter', | |||||
'minimum' => 100, | |||||
'maximum' => 10000, | |||||
'price' => 12, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Video Views', | |||||
'type' => 'views', | |||||
'site' => 'twitter', | |||||
'minimum' => 1000, | |||||
'maximum' => 100000, | |||||
'price' => 15, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Impressions', | |||||
'type' => 'impressions', | |||||
'site' => 'twitter', | |||||
'minimum' => 1000, | |||||
'maximum' => 100000, | |||||
'price' => 15, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Followers', | |||||
'type' => 'followers', | |||||
'site' => 'twitter', | |||||
'minimum' => 100, | |||||
'maximum' => 100000, | |||||
'price' => 15, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Likes', | |||||
'type' => 'likes', | |||||
'site' => 'tiktok', | |||||
'minimum' => 100, | |||||
'maximum' => 100000, | |||||
'price' => 13, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Shares', | |||||
'type' => 'shares', | |||||
'site' => 'tiktok', | |||||
'minimum' => 100, | |||||
'maximum' => 100000, | |||||
'price' => 15, | |||||
'available' => true, | |||||
]); | |||||
Service::create([ | |||||
'name' => 'Followers', | |||||
'type' => 'followers', | |||||
'site' => 'tiktok', | |||||
'minimum' => 100, | |||||
'maximum' => 100000, | |||||
'price' => 12, | |||||
'available' => true, | |||||
]); | |||||
User::create([ | User::create([ | ||||
'name' => 'test_user_unverified', | 'name' => 'test_user_unverified', | ||||
'email' => 'unverified@example.com', | 'email' => 'unverified@example.com', | ||||
@@ -44,7 +44,7 @@ Route::get('/verify-email', function() { | |||||
Route::get('/verify/{id}/{hash}', function (EmailVerificationRequest $request) { | Route::get('/verify/{id}/{hash}', function (EmailVerificationRequest $request) { | ||||
$request->fulfill(); | $request->fulfill(); | ||||
return redirect('/panel'); | return redirect('/panel'); | ||||
})->middleware(['auth', 'signed'])->name('verification.verify'); | })->middleware(['signed'])->name('verification.verify'); | ||||
Route::post('/resend-verification', function (Request $request) { | Route::post('/resend-verification', function (Request $request) { | ||||
if (Auth::user()->email_verified_at) { | if (Auth::user()->email_verified_at) { | ||||