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\BazaarReview;
|
||||
use App\Models\MobileApp;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<BazaarReview>
|
||||
*/
|
||||
class BazaarReviewFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'mobile_app_id' => MobileApp::factory(),
|
||||
'bazaar_review_id' => fake()->unique()->numberBetween(1, 99999999),
|
||||
'user_account_id' => fake()->uuid(),
|
||||
'rate' => fake()->numberBetween(1, 5),
|
||||
'text' => fake()->sentence(),
|
||||
'is_edited' => false,
|
||||
'published_at' => now(),
|
||||
'bazaar_response' => [],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user