Roman_applicant-site/routes/web.php

50 lines
1.4 KiB
PHP
Raw Permalink Normal View History

2024-01-10 12:57:24 +03:00
<?php
2024-01-10 14:00:03 +03:00
use App\Http\Controllers\ProfileController;
2024-01-11 15:10:01 +03:00
use App\Http\Controllers\UserController;
2024-01-10 12:57:24 +03:00
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 and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
Route::get('/', function () {
return view('home');
2024-01-11 15:10:01 +03:00
})->name('home');
Route::resource('/users', UserController::class);
Route::get('/home', function () {
return view('home');
});
Route::get('/course', function () {
return view('pages.course');
});
Route::get('/abitur', function () {
return view('pages.abitur');
2024-01-11 10:41:35 +03:00
});
2024-01-10 14:00:03 +03:00
2024-01-11 15:10:01 +03:00
Route::get('/dashboard', function () {
return view('dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');
2024-01-10 14:00:03 +03:00
Route::get('/dashboard', function () {
return view('dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');
Route::middleware('auth')->group(function () {
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
});
require __DIR__ . '/auth.php';