Skip to content
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

Open
wants to merge 18 commits into
base: dev
Choose a base branch
from
Open

Conversation

frooooooo7
Copy link
Contributor

No description provided.

@frooooooo7 frooooooo7 requested a review from marioooo0o January 14, 2025 18:18
@frooooooo7 frooooooo7 linked an issue Jan 14, 2025 that may be closed by this pull request
routes/api.php Outdated Show resolved Hide resolved
app/Http/Requests/UpdateCourseRegistrationRequest.php Outdated Show resolved Hide resolved
frooooooo7 and others added 4 commits January 16, 2025 22:23
- model binding for CourseRegistration in update method
- add values() method to RegistrationStatus enum and add Rule:: in validation for status
@frooooooo7 frooooooo7 requested a review from marioooo0o January 17, 2025 23:12
Copy link
Contributor

@marioooo0o marioooo0o left a 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
Comment on lines 39 to 45
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');
});
});
Copy link
Contributor

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

@frooooooo7 frooooooo7 requested a review from marioooo0o January 19, 2025 19:12
frooooooo7 and others added 6 commits February 4, 2025 17:41
…tration and AdminCourseRegistration

feat: add StudentCourseRegistrationController and its functionalities
- rename Student to Guest
- add store function to AdminCourseRegistrationController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Obsługa zgłoszenia do kursu z poziomu admina jak i użytkownika
2 participants