web.php 1008 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. use App\Http\Controllers\ApplicationController;
  3. use App\Http\Controllers\ProfileController;
  4. use Illuminate\Support\Facades\Route;
  5. Route::get('/', function () {
  6. return view('welcome');
  7. });
  8. Route::get('/dashboard', function () {
  9. return view('dashboard');
  10. })->middleware(['auth', 'verified'])->name('dashboard');
  11. Route::middleware('auth')->group(function () {
  12. Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
  13. Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
  14. Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
  15. Route::get('/applications', [ApplicationController::class, 'index'])->name('applications.index');
  16. Route::get('/applications/create', [ApplicationController::class, 'create'])->name('applications.create');
  17. Route::post('/applications/store', [ApplicationController::class, 'store'])->name('applications.store');
  18. });
  19. require __DIR__.'/auth.php';