feat: Add seeders for Buku and Kategori with initial data

This commit is contained in:
2026-03-17 22:10:16 +07:00
parent 5f00a0dbf1
commit 60eb58a6cf
4 changed files with 191 additions and 37 deletions

View File

@@ -2,24 +2,15 @@
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
use WithoutModelEvents;
/**
* Seed the application's database.
*/
public function run(): void
{
// User::factory(10)->create();
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
$this->call([
KategoriSeeder::class,
BukuSeeder::class
]);
}
}