Files
Atomcms-edit/database/factories/Shop/WebsitePaypalTransactionFactory.php
2026-05-23 19:05:37 +02:00

25 lines
693 B
PHP
Executable File

<?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',
];
}
}