29 lines
642 B
PHP
29 lines
642 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
class BajaSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$bajas = [
|
|
['motivo' => 'Cliente no responde'],
|
|
['motivo' => 'Servicio cancelado'],
|
|
];
|
|
|
|
foreach ($bajas as $baja) {
|
|
DB::table('bajas')->insert([
|
|
'motivo' => $baja['motivo'],
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
]);
|
|
}
|
|
}
|
|
}
|