This commit is contained in:
2024-10-29 18:27:44 +05:00
parent e65e9be650
commit 2b943b3842
4 changed files with 24 additions and 5 deletions

View File

@@ -14,6 +14,8 @@ return new class extends Migration
Schema::create('incoming_letters', function (Blueprint $table) { Schema::create('incoming_letters', function (Blueprint $table) {
$table->id(); $table->id();
$table->string('number')->nullable(); $table->string('number')->nullable();
$table->string('name')->nullable();
$table->string('main_file')->nullable();
$table->timestamps(); $table->timestamps();
}); });
} }

View File

@@ -14,6 +14,8 @@ return new class extends Migration
Schema::create('outgoing_letters', function (Blueprint $table) { Schema::create('outgoing_letters', function (Blueprint $table) {
$table->id(); $table->id();
$table->string('number')->nullable(); $table->string('number')->nullable();
$table->string('name')->nullable();
$table->string('main_file')->nullable();
$table->timestamps(); $table->timestamps();
}); });
} }

View File

@@ -13,11 +13,8 @@ class DatabaseSeeder extends Seeder
*/ */
public function run(): void public function run(): void
{ {
// User::factory(10)->create(); $this->call([
UserTableSeeder::class,
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
]); ]);
} }
} }

View File

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