Initial commit

This commit is contained in:
2026-02-06 23:26:56 +07:00
commit d6022b9bca
92 changed files with 41386 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace Database\Seeders;
use App\Models\User;
use Hash;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
// use WithoutModelEvents;
/**
* Seed the application's database.
*/
public function run(): void
{
User::truncate();
User::create([
'name' => 'yo_yo',
'email' => 'yo_yo@example.com',
'password' => Hash::make('123'),
]);
User::factory()->create([
'name' => 'Test User',
'email' => 'yo@example.com',
'password' => Hash::make('123'),
]);
// dd(User::all());
}
}

View File

@@ -0,0 +1,17 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class TaskSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
//
}
}