Browse Source

Tipos de Gasolina

creacion del modelo Tipos de Gasolina
main
Silva 4 weeks ago
parent
commit
1d41b37cc0
  1. 65
      app/Http/Controllers/TipoDeGasolinaController.php
  2. 11
      app/Models/Tipo_de_Gasolina.php
  3. 23
      database/factories/TipoDeGasolinaFactory.php
  4. 27
      database/migrations/2025_03_07_194830_create_tipo_de__gasolinas_table.php
  5. 17
      database/seeders/TipoDeGasolinaSeeder.php
  6. 6
      resources/views/layouts/dashboard.blade.php

65
app/Http/Controllers/TipoDeGasolinaController.php

@ -0,0 +1,65 @@
<?php
namespace App\Http\Controllers;
use App\Models\Tipo_de_Gasolina;
use Illuminate\Http\Request;
class TipoDeGasolinaController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Tipo_de_Gasolina $tipo_de_Gasolina)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Tipo_de_Gasolina $tipo_de_Gasolina)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Tipo_de_Gasolina $tipo_de_Gasolina)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Tipo_de_Gasolina $tipo_de_Gasolina)
{
//
}
}

11
app/Models/Tipo_de_Gasolina.php

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Tipo_de_Gasolina extends Model
{
use HasFactory;
}

23
database/factories/TipoDeGasolinaFactory.php

@ -0,0 +1,23 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Tipo_de_Gasolina>
*/
class TipoDeGasolinaFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
//
];
}
}

27
database/migrations/2025_03_07_194830_create_tipo_de__gasolinas_table.php

@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('tipo_de__gasolinas', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('tipo_de__gasolinas');
}
};

17
database/seeders/TipoDeGasolinaSeeder.php

@ -0,0 +1,17 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class TipoDeGasolinaSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
//
}
}

6
resources/views/layouts/dashboard.blade.php

@ -101,6 +101,12 @@
</a>
</li>
<li>
<a href="/configuracion/capacidad" class="flex items-center space-x-2 px-4 py-2 rounded hover:bg-blue-700">
<i class="fas fa-gas-pump"></i>
<span>Tipo de Gasolina </span>
</a>
</li>
<!-- Puestos -->
<li x-data="{ openPuestos: false }" class="relative">
<button @click="openPuestos = !openPuestos"

Loading…
Cancel
Save