|
|
<?php
namespace Database\Factories;
use DateTime; use Illuminate\Database\Eloquent\Factories\Factory;
/** * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Collection> */ class CollectionFactory extends Factory { /** * Define the model's default state. * * @return array<string, mixed> */ public function definition() { return [ "name" => fake()->name(), "public" => "public", "disk" => "local", "count" => rand(3,18), "tmp_support" => rand(0,1), "remove_tmp_time" => 132, "max_file_size" => rand(300,2000), "min_file_size" => rand(300,2000), "max_width" => rand(300,2000), "min_width" => rand(300,2000), "max_height" => rand(300,2000), "min_height" => rand(300,2000), "alt_required" => rand(0,1), "description_required" => rand(0,1), "exts" => [ "jpg", "jpeg", "png", "webp" ], "avalible_exts" => [ "jpg", "jpeg", "png", "webp" ], "memetypes" => [ "jpg", "jpeg", "png", "webp" ], "model" => fake()->name(), "expire_date" => "2022-07-27 09:17:59" ]; } }
|