-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/course registrations #13
base: dev
Are you sure you want to change the base?
Conversation
database/migrations/2025_01_08_183400_create_course_registrations_table.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plus te poprawki z enum
routes/api.php
Outdated
Route::middleware('auth:sanctum')->group(function () { | ||
Route::controller(CourseRegistrationController::class)->group(function () { | ||
Route::get('course-registrations', 'index'); | ||
Route::post('course-registrations', 'store'); | ||
Route::put('course-registrations/{courseRegistration}', 'update'); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zastosuj model binding czyli zrób trasę /courses/{course}/registration
i wtedy we wszyskich trasach będzie widomo do którego kursu się to tyczy, unikniemy podawania go w body
https://laravel.com/docs/11.x/controllers#restful-nested-resources
…tration and AdminCourseRegistration feat: add StudentCourseRegistrationController and its functionalities
No description provided.