Namespace seeders

This commit is contained in:
Laravel Shift
2021-06-10 20:18:00 +00:00
parent 104b441e0d
commit c90b1c6a43
20 changed files with 47 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
namespace Database\Seeders;
use App\Models\Supplier;
use Illuminate\Database\Seeder;
class SupplierSeeder extends Seeder
{
public function run()
{
Supplier::truncate();
Supplier::factory()->count(5)->create();
}
}