phpvue/database/factories/LinkFactory.php

27 lines
470 B
PHP
Raw Permalink Normal View History

2022-07-08 17:04:09 +08:00
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Link>
*/
class LinkFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition()
{
return [
//
'url' => Str::random(10),
];
}
}