Files
bella_masala_laravel/database/seeders/DatabaseSeeder.php
2025-11-06 06:55:15 +00:00

140 lines
3.6 KiB
PHP

<?php
namespace Database\Seeders;
use App\Models\MobileAppCategory;
use App\Models\Subscription;
use App\Models\User;
use App\Models\Setting;
use App\Models\PaymentMethod;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
User::create([
'name' => 'Super Admin',
'password' => bcrypt('12345678'),
'email' => 'suepr_admin@gmail.com',
'email_verified_at' => now(),
'country_code'=>'+92',
'phone' => '3286493155',
'type' => 'super_admin',
]);
User::create([
'name' => 'Admin',
'password' => bcrypt('12345678'),
'email' => 'admin@gmail.com',
'email_verified_at' => now(),
'country_code'=>'+92',
'phone' => '3286493155',
'type' => 'admin',
]);
User::create([
'name' => 'Client',
'password' => bcrypt('12345678'),
'email' => 'client@gmail.com',
'email_verified_at' => now(),
'country_code'=>'+92',
'phone' => '3286493155',
'type' => 'client',
]);
User::create([
'name' => 'Waiter',
'password' => bcrypt('12345678'),
'email' => 'waiter@gmail.com',
'email_verified_at' => now(),
'country_code'=>'+92',
'phone' => '3286493155',
'type' => 'waiter',
]);
Setting::create([
'key' => 'currency',
'value' => '€'
]);
Setting::create([
'key' => 'terms_and_conditions',
'value' => 'https://magnificentservices.net'
]);
Setting::create([
'key' => 'support_email',
'value' => 'support@magnificentservices.net'
]);
Setting::create([
'key' => 'support_phone',
'value' => '+923286493155'
]);
Setting::create([
'key' => 'is_email_verification_mandatory',
'value' => '0'
]);
Setting::create([
'key' => 'is_phone_verification_mandatory',
'value' => '0'
]);
// If primary verification method is phone than phone verification is mandatory - If primary verification method is email than email verification is mandatory - If primary verification method is none than check for email and phone verification items.
Setting::create([
'key' => 'primary_verification_method',
'value' => 'phone'
]);
Setting::create([
'key' => 'admin_pannel_version_code',
'value' => '1'
]);
Setting::create([
'key' => 'android_version_code',
'value' => '1'
]);
Setting::create([
'key' => 'ios_version_code',
'value' => '1'
]);
Setting::create([
'key' => 'android_update_type',
'value' => '0'
]);
Setting::create([
'key' => 'ios_update_type',
'value' => '0'
]);
Setting::create([
'key' => 'update_message',
'value' => 'Performance improvements. Bug Fixes.'
]);
Setting::create([
'key' => 'android_update_url',
'value' => 'https://magnificentservices.net'
]);
Setting::create([
'key' => 'ios_update_url',
'value' => 'https://magnificentservices.net'
]);
}
}