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');
|
|
|
|
|
2021-12-28 18:35:21 -03:00
|
|
|
Route::get('/eventos/{evento:slug}', [EventoController::class, 'edit'])->name('edit');
|
2021-11-25 16:19:13 -03:00
|
|
|
|
2021-12-28 18:35:21 -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');
|