CourseWork/routes/web.php

17 lines
517 B
PHP
Raw Normal View History

2024-04-15 16:23:05 +04:00
<?php
2024-04-16 13:27:51 +04:00
use App\Http\Controllers\GradeController;
2024-04-23 14:52:49 +04:00
use App\Http\Controllers\StudentController;
2024-04-17 10:11:31 +04:00
use App\Http\Controllers\SubjectController;
2024-04-23 14:52:49 +04:00
use App\Http\Controllers\TeacherController;
2024-04-15 16:23:05 +04:00
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
2024-04-17 13:02:44 +04:00
return redirect()->route('grades.index');
2024-04-15 16:23:05 +04:00
});
2024-04-16 13:27:51 +04:00
Route::resource('grades', GradeController::class);
2024-04-17 10:11:31 +04:00
Route::resource('subjects', SubjectController::class);
2024-04-23 14:52:49 +04:00
Route::resource('students', StudentController::class);
Route::resource('teachers', TeacherController::class);