init
This commit is contained in:
232 files changed
+25416
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\BazaarPurchase;
|
||||
use App\Models\MobileApp;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<BazaarPurchase>
|
||||
*/
|
||||
class BazaarPurchaseFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'mobile_app_id' => MobileApp::factory(),
|
||||
'product_id' => fake()->word(),
|
||||
'purchase_token' => fake()->unique()->uuid(),
|
||||
'status' => 'purchased',
|
||||
'is_consumed' => false,
|
||||
'purchased_at' => now(),
|
||||
'validated_at' => now(),
|
||||
'bazaar_response' => [],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user