41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\MobileApp;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
/**
|
|
* @extends Factory<MobileApp>
|
|
*/
|
|
class MobileAppFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => fake()->company(),
|
|
'package_name' => 'ir.'.fake()->unique()->domainWord().'.'.fake()->word(),
|
|
'client_key' => Str::random(48),
|
|
'management_key' => Str::random(64),
|
|
'is_active' => true,
|
|
'maintenance_mode' => false,
|
|
'latest_version_name' => '1.0.0',
|
|
'latest_version_code' => 1,
|
|
'minimum_version_code' => 1,
|
|
'configuration' => [],
|
|
'feature_flags' => [],
|
|
'bazaar_api_secret' => Str::random(64),
|
|
'bazaar_comments_header' => 'CAFEBAZAAR-PISHKHAN-API-SECRET',
|
|
'bazaar_comments_secret' => Str::random(64),
|
|
'bazaar_sync_enabled' => true,
|
|
'bazaar_sync_interval_minutes' => 15,
|
|
];
|
|
}
|
|
}
|