updated to laravel 11
This commit is contained in:
@@ -2,27 +2,21 @@
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use App\Models\Media;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Event>
|
||||
*/
|
||||
class MediaFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
protected $model = Media::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'title' => $this->faker->sentence(),
|
||||
'name' => storage_path('app/public/') . $this->faker->slug() . '.' . $this->faker->fileExtension(),
|
||||
'name' => $this->faker->word() . '.' . $this->faker->fileExtension(),
|
||||
'title' => $this->faker->sentence,
|
||||
'mime_type' => $this->faker->mimeType(),
|
||||
'user_id' => $this->faker->uuid(),
|
||||
'size' => $this->faker->numberBetween(1000, 1000000),
|
||||
'user_id' => $this->faker->uuid,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user