planifibo7/routes/web.php

30 lines
979 B
PHP
Raw Normal View History

2021-11-25 16:19:13 -03:00
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\EventoController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
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:slug}', [EventoController::class, 'edit'])->name('edit');
2021-11-25 16:19:13 -03:00
Route::get('/eventos/{evento:slug}/resultado', [EventoController::class, 'show'])->name('show');
2021-12-09 17:10:56 -03:00
Route::get('/resultado', [EventoController::class, 'mostrarResultado'])->name('resultado');