CourseWork/routes/web.php
2024-05-06 17:47:25 +04:00

22 lines
644 B
PHP

<?php
use App\Http\Controllers\GradeController;
use App\Http\Controllers\StudentController;
use App\Http\Controllers\SubjectController;
use App\Http\Controllers\SubjectTeacherController;
use App\Http\Controllers\TeacherController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return redirect()->route('grades.index');
});
Route::resources([
'grades' => GradeController::class,
'subjects' => SubjectController::class,
'students' => StudentController::class,
'teachers' => TeacherController::class,
]);
Route::resource('teachers.subjects', SubjectTeacherController::class)->except('index', 'show');