Finalizacion de la primera version del proyecto

This commit is contained in:
Guillermo Gutierrez
2023-08-16 16:13:34 -07:00
parent 994709a3e5
commit 0946d9e951
31 changed files with 640 additions and 271 deletions

View File

@@ -14,7 +14,8 @@ class DatabaseSeeder extends Seeder
public function run(): void
{
$this->call([
EstadoVentaSeeder::class,
EstadoMovimientoSeeder::class,
EstadoCajaMovimientoSeeder::class,
RoleSeeder::class,
UserSeeder::class,
]);

View File

@@ -0,0 +1,30 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
class EstadoCajaMovimientoSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
DB::table('estado_caja_movimientos')->insert([
[
'nombre' => 'Caja Inicial',
'created_at' => Carbon::now(),
'updated_at' => Carbon::now()
],
[
'nombre' => 'Retiro',
'created_at' => Carbon::now(),
'updated_at' => Carbon::now()
],
]);
}
}

View File

@@ -7,7 +7,7 @@ use Illuminate\Database\Seeder;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
class EstadoVentaSeeder extends Seeder
class EstadoMovimientoSeeder extends Seeder
{
/**
* Run the database seeds.
@@ -16,7 +16,7 @@ class EstadoVentaSeeder extends Seeder
{
//
DB::table('estado_ventas')->insert([
DB::table('estado_movimientos')->insert([
[
'nombre' => 'Venta',
'created_at' => Carbon::now(),