phpvue/database/seeders/LinkSeeder.php

25 lines
415 B
PHP

<?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),
]);
}
}