Loading app/Http/Controllers/ListaController.php 0 → 100644 +65 −0 Original line number Diff line number Diff line <?php namespace App\Http\Controllers; use App\Models\Lista; use Illuminate\Http\Request; class ListaController 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(Lista $lista) { // } /** * Show the form for editing the specified resource. */ public function edit(Lista $lista) { // } /** * Update the specified resource in storage. */ public function update(Request $request, Lista $lista) { // } /** * Remove the specified resource from storage. */ public function destroy(Lista $lista) { // } } app/Models/Lista.php 0 → 100644 +14 −0 Original line number Diff line number Diff line <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Lista extends Model { use HasFactory; protected $fillable = [ 'nombre', ]; } database/migrations/2024_07_05_151703_create_listas_table.php 0 → 100644 +28 −0 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('listas', function (Blueprint $table) { $table->id(); $table->string('nombre'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('listas'); } }; Loading
app/Http/Controllers/ListaController.php 0 → 100644 +65 −0 Original line number Diff line number Diff line <?php namespace App\Http\Controllers; use App\Models\Lista; use Illuminate\Http\Request; class ListaController 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(Lista $lista) { // } /** * Show the form for editing the specified resource. */ public function edit(Lista $lista) { // } /** * Update the specified resource in storage. */ public function update(Request $request, Lista $lista) { // } /** * Remove the specified resource from storage. */ public function destroy(Lista $lista) { // } }
app/Models/Lista.php 0 → 100644 +14 −0 Original line number Diff line number Diff line <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Lista extends Model { use HasFactory; protected $fillable = [ 'nombre', ]; }
database/migrations/2024_07_05_151703_create_listas_table.php 0 → 100644 +28 −0 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('listas', function (Blueprint $table) { $table->id(); $table->string('nombre'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('listas'); } };