You've already forked Atomcms-edit
fix: standardize language to English in README and AlertSettings
feat: add 24 model factories for Help, Shop, Community, Game, User domains - Translate mixed Dutch/English strings in README.md and AlertSettings.php - Add HasFactory trait to 23 models - Create factories for Help (6), Shop (4), Community (5), Game (2), User (7)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories\Shop;
|
||||
|
||||
use App\Models\Shop\WebsitePaypalTransaction;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class WebsitePaypalTransactionFactory extends Factory
|
||||
{
|
||||
protected $model = WebsitePaypalTransaction::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'user_id' => User::factory(),
|
||||
'transaction_id' => $this->faker->uuid(),
|
||||
'status' => $this->faker->randomElement(['completed', 'pending', 'failed']),
|
||||
'description' => $this->faker->sentence(),
|
||||
'amount' => $this->faker->randomFloat(2, 1, 100),
|
||||
'currency' => 'USD',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user