lets go
This commit is contained in:
@@ -14,6 +14,8 @@ return new class extends Migration
|
||||
Schema::create('incoming_letters', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('number')->nullable();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('main_file')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@ return new class extends Migration
|
||||
Schema::create('outgoing_letters', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('number')->nullable();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('main_file')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,11 +13,8 @@ class DatabaseSeeder extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
// User::factory(10)->create();
|
||||
|
||||
User::factory()->create([
|
||||
'name' => 'Test User',
|
||||
'email' => 'test@example.com',
|
||||
$this->call([
|
||||
UserTableSeeder::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
18
database/seeders/UserTableSeeder.php
Normal file
18
database/seeders/UserTableSeeder.php
Normal 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
|
||||
{
|
||||
// ...
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user