cotizaweb/database/seeders/CotizacionSeeder.php
jesusfb 161fcee049
Some checks are pending
Deploy to EC2 cotiza / deploy (push) Waiting to run
first commit
2026-04-24 12:53:27 -07:00

29 lines
628 B
PHP

<?php
namespace Database\Seeders;
use App\Models\Cotizacion;
use App\Models\Cliente;
use App\Models\Company;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;
class CotizacionSeeder extends Seeder
{
public function run()
{
$company = Company::first();
$cliente = Cliente::first();
Cotizacion::create([
'company_id' => $company->id,
'cliente_id' => $cliente->id,
'token' => Str::random(12),
'estado' => 'pendiente',
'subtotal' => 12500.00,
'iva' => 2000.00,
'total' => 14500.00,
]);
}
}