phpvue/database/seeders/LinkSeeder.php

25 lines
415 B
PHP
Raw Permalink Normal View History

2022-07-08 17:04:09 +08:00
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;
class LinkSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
\App\Models\Link::factory()->create([
'url' => Str::random(10),
]);
}
}