diff --git a/.directory b/.directory new file mode 100644 index 0000000..14ff249 --- /dev/null +++ b/.directory @@ -0,0 +1,5 @@ +[Dolphin] +HeaderColumnWidths=372,72,103 +Timestamp=2021,11,27,10,20,55 +Version=4 +ViewMode=1 diff --git a/.env.example b/.env.example deleted file mode 100644 index 4e5d4a6..0000000 --- a/.env.example +++ /dev/null @@ -1,52 +0,0 @@ -APP_NAME=Planifibo7 -APP_ENV=local -APP_KEY= -APP_DEBUG=true -APP_URL=http://localhost - -LOG_CHANNEL=stack -LOG_DEPRECATIONS_CHANNEL=null -LOG_LEVEL=debug - -DB_CONNECTION=mysql -DB_HOST=db -DB_PORT=3306 -DB_DATABASE=planifibo7 -DB_USERNAME=root -DB_PASSWORD= - -BROADCAST_DRIVER=log -CACHE_DRIVER=file -FILESYSTEM_DRIVER=local -QUEUE_CONNECTION=sync -SESSION_DRIVER=file -SESSION_LIFETIME=120 - -MEMCACHED_HOST=127.0.0.1 - -REDIS_HOST=127.0.0.1 -REDIS_PASSWORD=null -REDIS_PORT=6379 - -MAIL_MAILER=smtp -MAIL_HOST=mailhog -MAIL_PORT=1025 -MAIL_USERNAME=null -MAIL_PASSWORD=null -MAIL_ENCRYPTION=null -MAIL_FROM_ADDRESS=null -MAIL_FROM_NAME="${APP_NAME}" - -AWS_ACCESS_KEY_ID= -AWS_SECRET_ACCESS_KEY= -AWS_DEFAULT_REGION=us-east-1 -AWS_BUCKET= -AWS_USE_PATH_STYLE_ENDPOINT=false - -PUSHER_APP_ID= -PUSHER_APP_KEY= -PUSHER_APP_SECRET= -PUSHER_APP_CLUSTER=mt1 - -MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" -MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/app/Http/Controllers/DiaController.php b/app/Http/Controllers/DiaController.php deleted file mode 100644 index 6ad1bb6..0000000 --- a/app/Http/Controllers/DiaController.php +++ /dev/null @@ -1,85 +0,0 @@ -validate([ - 'nombre' => 'required', - ]); - $evento = new Evento(); - $evento->nombre = $request->input("nombre"); - $evento->save(); - return redirect()->route("edit", ['evento' => $evento]); - } - - /** - * Display the specified resource. - * - * @param \App\Models\Evento $evento - * @return \Illuminate\Http\Response - */ - public function show(Evento $evento) - { - // evento->coordinar devuelve los tres mejores marzullos de los días que tiene asociados - // dia->marzullo devuelve array de - // [dia::string, cantidad::integer, inicio::integer, fin::integer, duracion::integer - // inicioLindo::string, finLindo::string, duracionLinda::string] - $marzullos = $evento->coordinar(); - return view("resultado", ['marzullos' => $marzullos, 'evento' => $evento]); - } - - /** - * Show the form for editing the specified resource. - * - * @param \App\Models\Evento $evento - * @return \Illuminate\Http\Response - */ - public function edit(Evento $evento) - { - return view("edit", ['evento' => $evento]); - } - - /** - * Update the specified resource in storage. - * - * @param \Illuminate\Http\Request $request - * @param \App\Models\Evento $evento - * @return \Illuminate\Http\RedirectResponse - */ - public function update(Request $request, Evento $evento) { - - // Validación. - request()->validate([ - 'dia' => 'array', - 'dia.*' => 'required|string|max:100', - 'salida' => 'array', - 'llegada.*' => 'required|date_format:H:i', - 'llegada' => 'array', - 'salida.*' => 'required|date_format:H:i|after:llegada.*' - ],[ - 'salida.*.after' => 'La hora de llegada debe ser anterior a la de salida.' - ]); - - // Adición de días y horas. - foreach ($request->input('dia') as $i => $dia) { - - // Busqueda en la lista de días del evento, y adición en su defecto. - $diaNombre = strtolower(trim($dia)); // ¿HACER FUNCIÓN PARA NORMALIZAR NOMBRES? - $arrayAux = $evento->dias()->where('nombre',$diaNombre)->get(); - $diaID = null; - if ($arrayAux->count() == 0) { - $nuevo = new Dia(['nombre' => $diaNombre]); - $nuevo->evento_id = $evento->id; - $nuevo->save(); - $diaID = $nuevo->id; - } else { - $diaID = $arrayAux[0]->id; - } - - // Creación de hora_flags ingresados para cada día. - $llegadaDia = new HoraFlag([ - 'dia_id' => $diaID, - 'minutoDelDia' => Utils::formatMinutos($request->input('llegada')[$i]), - 'flag' => 1 - ]); - $salidaDia = new HoraFlag([ - 'dia_id' => $diaID, - 'minutoDelDia' => Utils::formatMinutos($request->input('salida')[$i]), - 'flag' => -1 - ]); - - // Adición de hora_flags ingresados para cada día. - $llegadaDia->save(); - $salidaDia->save(); - } - - return redirect()->route("show", ['evento' => $evento]); - } - - /** - * Remove the specified resource from storage. - * - * @param \App\Models\Evento $evento - * @return \Illuminate\Http\Response - */ - public function destroy(Evento $evento) - { - // - } - - public function prueba() - { - return view("prueba"); - } -} diff --git a/app/Http/Controllers/HoraFlagController.php b/app/Http/Controllers/HoraFlagController.php deleted file mode 100644 index a3850f3..0000000 --- a/app/Http/Controllers/HoraFlagController.php +++ /dev/null @@ -1,85 +0,0 @@ -belongsTo(Evento::class); - } - - public function horaFlags() { - return $this->hasMany(HoraFlag::class); - } - - // ordena las horaFlags asociadas a día por minutoDelDía, de menor a mayor; - // las recorre sumando las flags asociadas a cada una y guardándo el número en cant_actual; - // cuando cant_actual supera a la cantidad guardada en best, se hace un nuevo best: - // se pone best["cantidad"] = cant_actual, en best["inicio"] el minutoDelDia de la hora actual - // y en best["fin"] el minutoDelDía de la hora siguiente (esta hora existe porque si cant_actual - // crece es porque llega a alguien, y por lo tanto hay una hora posterior en la que se va). - // finalmente se devuelve best, con la duración del horario devuelto. - public function marzullo() { - // INICIO - $cant_actual = 0; - $best = ["cantidad" => 0, "inicio" => 0, "fin" => 0]; - // Ordenar horaFlags por minutoDelDia - $horas = $this->horaFlags()->orderBy('minutoDelDia')->get(); - // var_dump($horas); - - // ALGORITMO - foreach ($horas as $i => $hora) { - $cant_actual += $hora->flag; - if ($cant_actual > $best["cantidad"] && - ($horas[$i+1]->flag > 0 || $horas[$i+1]->minutoDelDia - $hora->minutoDelDia > 15)) { - $best["cantidad"] = $cant_actual; - $best["inicio"] = $hora->minutoDelDia; - $best["fin"] = $horas[$i+1]->minutoDelDia; - } - } - - // RETURN - $duracion = $best["fin"] - $best["inicio"]; - return [$best["cantidad"], $best["inicio"], $best["fin"], $duracion]; - } - -} diff --git a/app/Models/Evento.php b/app/Models/Evento.php deleted file mode 100644 index 034b158..0000000 --- a/app/Models/Evento.php +++ /dev/null @@ -1,57 +0,0 @@ -hasMany(Dia::class); - } - - // devuelve los tres mejores marzullos de los días que tiene asociados - public function coordinar(): array { - $marzullos = []; - //devuelve array de - // [dia::string, cantidad::integer, inicio::integer, fin::integer, duracion::integer - // inicioLindo::string, finLindo::string, duracionLinda::string] - foreach ($this->dias as $dia) { - [$a, $b, $c, $d] = $dia->marzullo(); - $marzullos[] = ["dia" => $dia->nombre, "cantidad" => $a, - "inicio" => $b, "fin" => $c, "duracion" => $d, - "inicioLindo" => Utils::parseHora($b), "finLindo" => Utils::parseHora($c), - "duracionLinda" => Utils::parseHora($d)]; - } - usort($marzullos, array($this, "cmp_cant_marzullo")); - return array_slice($marzullos, 0, 3); - } - - /* --- */ - - //compara marzullos - // $a,$b::[nombre::string, cantidad::integer, horario::string, duracion::integer] - - // por cantidad - function cmp_cant_marzullo($a, $b): int { - $cant_a = $a["cantidad"]; - $cant_b = $b["cantidad"]; - if ($cant_a == $cant_b) { - return $this->cmp_dur_marzullo($a, $b); - } - return ($cant_a > $cant_b) ? -1 : 1; - } - - // por duracion - private function cmp_dur_marzullo($a, $b): int { - $dur_a = $a["duracion"]; - $dur_b = $b["duracion"]; - if ($dur_a == $dur_b) { - return 0; - } - return ($dur_a > $dur_b) ? -1 : 1; - } -} diff --git a/app/Models/HoraFlag.php b/app/Models/HoraFlag.php deleted file mode 100644 index 97c57f1..0000000 --- a/app/Models/HoraFlag.php +++ /dev/null @@ -1,22 +0,0 @@ -belongsTo(Dia::class); - } -} diff --git a/app/Models/Utils.php b/app/Models/Utils.php deleted file mode 100644 index 8ccab87..0000000 --- a/app/Models/Utils.php +++ /dev/null @@ -1,27 +0,0 @@ - 0. - // El OUTPUT es un string de forma 'hh:mm' con hh entre 00 y 23 y mm entre 00 y 59 - public static function parseHora($cantMinutos) { - $horas = floor($cantMinutos / 60); - if ($horas < 10) $horas = '0' . $horas; - $minutos = $cantMinutos % 60; - if ($minutos < 10) $minutos = '0' . $minutos; - return $horas . ':' . $minutos; - } - -} diff --git a/composer.json b/composer.json index e1604e6..a1eff58 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,8 @@ "guzzlehttp/guzzle": "^7.0.1", "laravel/framework": "^8.65", "laravel/sanctum": "^2.11", - "laravel/tinker": "^2.5" + "laravel/tinker": "^2.5", + "mpdf/mpdf":"^8.0" }, "require-dev": { "facade/ignition": "^2.5", diff --git a/composer.lock b/composer.lock index 4882941..65b7b9d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "4e7d5b31e3df4b06e37b56fbbfb4290d", + "content-hash": "3e6171f794f1c0ba92534c8e0a7e773d", "packages": [ { "name": "asm89/stack-cors", @@ -1517,16 +1517,16 @@ }, { "name": "league/flysystem", - "version": "1.1.6", + "version": "1.1.7", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "627be7fcde84c71aa0f15097fcf48fd5f2be5287" + "reference": "3ca8f158ee21efa4bbd4f74bea5730c9b9261e2d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/627be7fcde84c71aa0f15097fcf48fd5f2be5287", - "reference": "627be7fcde84c71aa0f15097fcf48fd5f2be5287", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/3ca8f158ee21efa4bbd4f74bea5730c9b9261e2d", + "reference": "3ca8f158ee21efa4bbd4f74bea5730c9b9261e2d", "shasum": "" }, "require": { @@ -1599,7 +1599,7 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/1.1.6" + "source": "https://github.com/thephpleague/flysystem/tree/1.1.7" }, "funding": [ { @@ -1607,7 +1607,7 @@ "type": "other" } ], - "time": "2021-11-21T11:04:36+00:00" + "time": "2021-11-25T19:40:58+00:00" }, { "name": "league/mime-type-detection", @@ -1764,6 +1764,139 @@ ], "time": "2021-10-01T21:08:31+00:00" }, + { + "name": "mpdf/mpdf", + "version": "v8.0.15", + "source": { + "type": "git", + "url": "https://github.com/mpdf/mpdf.git", + "reference": "d8a5294a6cc2e814c4157aecc8d7ac25014b18ed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mpdf/mpdf/zipball/d8a5294a6cc2e814c4157aecc8d7ac25014b18ed", + "reference": "d8a5294a6cc2e814c4157aecc8d7ac25014b18ed", + "shasum": "" + }, + "require": { + "ext-gd": "*", + "ext-mbstring": "*", + "myclabs/deep-copy": "^1.7", + "paragonie/random_compat": "^1.4|^2.0|^9.99.99", + "php": "^5.6 || ^7.0 || ~8.0.0 || ~8.1.0", + "psr/log": "^1.0 || ^2.0", + "setasign/fpdi": "^2.1" + }, + "require-dev": { + "mockery/mockery": "^1.3.0", + "mpdf/qrcode": "^1.1.0", + "squizlabs/php_codesniffer": "^3.5.0", + "tracy/tracy": "^2.4", + "yoast/phpunit-polyfills": "^1.0" + }, + "suggest": { + "ext-bcmath": "Needed for generation of some types of barcodes", + "ext-xml": "Needed mainly for SVG manipulation", + "ext-zlib": "Needed for compression of embedded resources, such as fonts" + }, + "type": "library", + "autoload": { + "psr-4": { + "Mpdf\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "GPL-2.0-only" + ], + "authors": [ + { + "name": "Matěj Humpál", + "role": "Developer, maintainer" + }, + { + "name": "Ian Back", + "role": "Developer (retired)" + } + ], + "description": "PHP library generating PDF files from UTF-8 encoded HTML", + "homepage": "https://mpdf.github.io", + "keywords": [ + "pdf", + "php", + "utf-8" + ], + "support": { + "docs": "http://mpdf.github.io", + "issues": "https://github.com/mpdf/mpdf/issues", + "source": "https://github.com/mpdf/mpdf" + }, + "funding": [ + { + "url": "https://www.paypal.me/mpdf", + "type": "custom" + } + ], + "time": "2021-11-10T08:15:22+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.10.2", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "replace": { + "myclabs/deep-copy": "self.version" + }, + "require-dev": { + "doctrine/collections": "^1.0", + "doctrine/common": "^2.6", + "phpunit/phpunit": "^7.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + }, + "files": [ + "src/DeepCopy/deep_copy.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2020-11-13T09:40:50+00:00" + }, { "name": "nesbot/carbon", "version": "2.54.0", @@ -2127,6 +2260,56 @@ }, "time": "2021-04-09T13:42:10+00:00" }, + { + "name": "paragonie/random_compat", + "version": "v9.99.100", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a", + "shasum": "" + }, + "require": { + "php": ">= 7" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*", + "vimeo/psalm": "^1" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "polyfill", + "pseudorandom", + "random" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/random_compat/issues", + "source": "https://github.com/paragonie/random_compat" + }, + "time": "2020-10-15T08:29:30+00:00" + }, { "name": "phpoption/phpoption", "version": "1.8.0", @@ -2851,6 +3034,78 @@ ], "time": "2021-09-25T23:10:38+00:00" }, + { + "name": "setasign/fpdi", + "version": "v2.3.6", + "source": { + "type": "git", + "url": "https://github.com/Setasign/FPDI.git", + "reference": "6231e315f73e4f62d72b73f3d6d78ff0eed93c31" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Setasign/FPDI/zipball/6231e315f73e4f62d72b73f3d6d78ff0eed93c31", + "reference": "6231e315f73e4f62d72b73f3d6d78ff0eed93c31", + "shasum": "" + }, + "require": { + "ext-zlib": "*", + "php": "^5.6 || ^7.0 || ^8.0" + }, + "conflict": { + "setasign/tfpdf": "<1.31" + }, + "require-dev": { + "phpunit/phpunit": "~5.7", + "setasign/fpdf": "~1.8", + "setasign/tfpdf": "1.31", + "squizlabs/php_codesniffer": "^3.5", + "tecnickcom/tcpdf": "~6.2" + }, + "suggest": { + "setasign/fpdf": "FPDI will extend this class but as it is also possible to use TCPDF or tFPDF as an alternative. There's no fixed dependency configured." + }, + "type": "library", + "autoload": { + "psr-4": { + "setasign\\Fpdi\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jan Slabon", + "email": "jan.slabon@setasign.com", + "homepage": "https://www.setasign.com" + }, + { + "name": "Maximilian Kresse", + "email": "maximilian.kresse@setasign.com", + "homepage": "https://www.setasign.com" + } + ], + "description": "FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF. Because it is also possible to use FPDI with TCPDF, there are no fixed dependencies defined. Please see suggestions for packages which evaluates the dependencies automatically.", + "homepage": "https://www.setasign.com/fpdi", + "keywords": [ + "fpdf", + "fpdi", + "pdf" + ], + "support": { + "issues": "https://github.com/Setasign/FPDI/issues", + "source": "https://github.com/Setasign/FPDI/tree/v2.3.6" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/setasign/fpdi", + "type": "tidelift" + } + ], + "time": "2021-02-11T11:37:01+00:00" + }, { "name": "swiftmailer/swiftmailer", "version": "v6.3.0", diff --git a/database/factories/DiaFactory.php b/database/factories/DiaFactory.php deleted file mode 100644 index 8d26464..0000000 --- a/database/factories/DiaFactory.php +++ /dev/null @@ -1,28 +0,0 @@ -id(); - $table->timestamps(); - $table->string("nombre"); - $table->boolean("abierto")->default(true); //true indica que se pueden agregar nuevas disponibilidades, false que no. - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('eventos'); - } -} diff --git a/database/migrations/2021_07_15_003648_create_dias_table.php b/database/migrations/2021_07_15_003648_create_dias_table.php deleted file mode 100644 index 0335de0..0000000 --- a/database/migrations/2021_07_15_003648_create_dias_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->timestamps(); - $table->foreignId("evento_id"); - $table->string("nombre"); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('dias'); - } -} diff --git a/database/migrations/2021_07_15_003721_create_hora_flags_table.php b/database/migrations/2021_07_15_003721_create_hora_flags_table.php deleted file mode 100644 index 5b30d3a..0000000 --- a/database/migrations/2021_07_15_003721_create_hora_flags_table.php +++ /dev/null @@ -1,34 +0,0 @@ -id(); - $table->timestamps(); - $table->foreignId("dia_id"); - $table->integer("minutoDelDia"); - $table->integer("flag"); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('hora_flags'); - } -} diff --git a/database/seeders/DiaSeeder.php b/database/seeders/DiaSeeder.php deleted file mode 100644 index 479f5ae..0000000 --- a/database/seeders/DiaSeeder.php +++ /dev/null @@ -1,18 +0,0 @@ - -
-

- {{ $marzullo["dia"] }} -

-

- Desde {{ $marzullo["inicioLindo"] }} hasta {{ $marzullo["finLindo"] }} - pueden {{ $marzullo["cantidad"] }} personas (duración: {{ $marzullo["duracionLinda"] }}). -

-
diff --git a/resources/views/prueba.blade.php b/resources/views/prueba.blade.php deleted file mode 100644 index 32da22f..0000000 --- a/resources/views/prueba.blade.php +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - Planifibot - - - - - - - - - - - -
- @if (Route::has('login')) - - @endif - -
-
- -
- -
-
-
-

- Funcionó -

-
-
-
- -
-
- Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) -
-
-
-
- - diff --git a/resources/views/resultado.blade.php b/resources/views/resultado.blade.php deleted file mode 100644 index 7b860e9..0000000 --- a/resources/views/resultado.blade.php +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - Planifibot - {{ $evento->nombre }} - - - - - - - - - - - -
- @if (Route::has('login')) - - @endif - -
-
- -
- -
-

- {{ $evento->nombre }} -

-
- - - -
-
-
-

- Hasta ahora estos son los mejores horarios para "{{ $evento->nombre }}": -

- @each('marzullo', $marzullos, 'marzullo') -
-
-
- -
-
- Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) -
-
-
-
- - diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 290ae7f..6d341cd 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -4,7 +4,7 @@ - Planifibo7 + Librilladora @@ -40,28 +40,16 @@
- +

Librilladora

-
-
-
- @csrf - - @error('nombre') -
El evento precisa nombre.
- @enderror - -
-
- -
-
- - -
-
+
+
+ @csrf + + +
diff --git a/routes/web.php b/routes/web.php index e5442ce..432a406 100644 --- a/routes/web.php +++ b/routes/web.php @@ -17,11 +17,3 @@ use App\Http\Controllers\EventoController; Route::get('/', function () { return view('welcome'); }); - -Route::post('/eventos', [EventoController::class, 'store'])->name('store'); - -Route::post('/eventos/{evento}', [EventoController::class, 'update'])->name('update'); - -Route::get('/eventos/{evento}', [EventoController::class, 'edit'])->name('edit'); - -Route::get('/eventos/{evento}/resultado', [EventoController::class, 'show'])->name('show');