Download database/factories/AdvertisFactory.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 805 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/database/factories/AdvertisFactory.php
- Command line
-
hf download hf://pnacorp/magicai/database/factories/AdvertisFactory.php
-
curl -L -o AdvertisFactory.php https://huggingface.co/pnacorp/magicai/resolve/main/database/factories/AdvertisFactory.php
805 Bytes
| 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(), | |
| ]; | |
| } | |
| } | |