File size: 805 Bytes
5f32fbd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | <?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Advertis>
*/
class AdvertisFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'key' => str($this->faker->unique()->word())->snake(),
'title' => $this->faker->sentence(),
'tracking_code' => [
'mobile' => $this->faker->randomHtml(),
'desktop' => $this->faker->randomHtml(),
'tablet' => $this->faker->randomHtml(),
],
'status' => $this->faker->boolean(),
];
}
}
|