Commit a075408d authored by Alfonso Rafael Solis Rangel's avatar Alfonso Rafael Solis Rangel
Browse files

Eliminar archivos mal configurados

parent 4f94e559
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class subgrupoController extends Controller
{
    //
}

app/Models/subgrupo.php

deleted100644 → 0
+0 −11
Original line number Diff line number Diff line
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class subgrupo extends Model
{
    use HasFactory;
}
+0 −32
Original line number Diff line number Diff line
<?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('subgrupos', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('grupo_id')->nullable();
            $table->unsignedBigInteger('subgrupo_id')->nullable();
            $table->timestamps();

            $table->foreign('grupo_id')->references('id')->on('grupos')->nullable();
            $table->foreign('subgrupo_id')->references('id')->on('subgrupos')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('subgrupos');
    }
};