Files
einundzwanzig-portal/routes/web.php
Benjamin Takats d2427cf3d0 search tabs added
2022-12-01 00:10:37 +01:00

47 lines
1.4 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| 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 to_route('search.city', ['country' => 'de']);
})
->name('welcome');
Route::get('/{country:code}/suche/stadt', \App\Http\Livewire\Frontend\SearchCity::class)
->name('search.city');
Route::get('/{country:code}/suche/dozent', \App\Http\Livewire\Frontend\SearchLecturer::class)
->name('search.lecturer');
Route::get('/{country:code}/suche/kurs', \App\Http\Livewire\Frontend\SearchCity::class)
->name('search.course');
Route::get('/{country:code}/suche/termin', \App\Http\Livewire\Frontend\SearchCity::class)
->name('search.event');
Route::get('/dozenten', \App\Http\Livewire\Guest\Welcome::class)
->name('search.lecturers');
Route::middleware([
'auth:sanctum',
config('jetstream.auth_session'),
'verified'
])
->group(function () {
Route::get('/dashboard', function () {
return view('dashboard');
})
->name('dashboard');
});