From 1d41b37cc0bd2340e389123f128fa0f08c8b1e3f Mon Sep 17 00:00:00 2001 From: Silva Date: Fri, 7 Mar 2025 13:49:19 -0600 Subject: [PATCH] Tipos de Gasolina creacion del modelo Tipos de Gasolina --- .../Controllers/TipoDeGasolinaController.php | 65 +++++++++++++++++++ app/Models/Tipo_de_Gasolina.php | 11 ++++ database/factories/TipoDeGasolinaFactory.php | 23 +++++++ ...194830_create_tipo_de__gasolinas_table.php | 27 ++++++++ database/seeders/TipoDeGasolinaSeeder.php | 17 +++++ resources/views/layouts/dashboard.blade.php | 6 ++ 6 files changed, 149 insertions(+) create mode 100644 app/Http/Controllers/TipoDeGasolinaController.php create mode 100644 app/Models/Tipo_de_Gasolina.php create mode 100644 database/factories/TipoDeGasolinaFactory.php create mode 100644 database/migrations/2025_03_07_194830_create_tipo_de__gasolinas_table.php create mode 100644 database/seeders/TipoDeGasolinaSeeder.php diff --git a/app/Http/Controllers/TipoDeGasolinaController.php b/app/Http/Controllers/TipoDeGasolinaController.php new file mode 100644 index 0000000..2a5fc40 --- /dev/null +++ b/app/Http/Controllers/TipoDeGasolinaController.php @@ -0,0 +1,65 @@ + + */ +class TipoDeGasolinaFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + // + ]; + } +} diff --git a/database/migrations/2025_03_07_194830_create_tipo_de__gasolinas_table.php b/database/migrations/2025_03_07_194830_create_tipo_de__gasolinas_table.php new file mode 100644 index 0000000..cf81c66 --- /dev/null +++ b/database/migrations/2025_03_07_194830_create_tipo_de__gasolinas_table.php @@ -0,0 +1,27 @@ +id(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('tipo_de__gasolinas'); + } +}; diff --git a/database/seeders/TipoDeGasolinaSeeder.php b/database/seeders/TipoDeGasolinaSeeder.php new file mode 100644 index 0000000..bb08eba --- /dev/null +++ b/database/seeders/TipoDeGasolinaSeeder.php @@ -0,0 +1,17 @@ + +
  • + + + Tipo de Gasolina + +