init
This commit is contained in:
232 files changed
+25416
No files matched your search
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\BazaarApiRequest;
|
||||
use App\Models\MobileApp;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<BazaarApiRequest>
|
||||
*/
|
||||
class BazaarApiRequestFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'mobile_app_id' => MobileApp::factory(),
|
||||
'operation' => 'purchase.validate',
|
||||
'method' => 'GET',
|
||||
'url' => 'https://pardakht.cafebazaar.ir/devapi/v2/api/example',
|
||||
'status_code' => 200,
|
||||
'successful' => true,
|
||||
'duration_ms' => 100,
|
||||
'request_metadata' => [],
|
||||
'response_body' => [],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user