User should recieve a mail notification on event registeration #128#213
Open
LKyz24 wants to merge 27 commits intoAjiet-DevNation:mainfrom
Open
User should recieve a mail notification on event registeration #128#213LKyz24 wants to merge 27 commits intoAjiet-DevNation:mainfrom
LKyz24 wants to merge 27 commits intoAjiet-DevNation:mainfrom
Conversation
added 5 commits
October 13, 2024 12:29
…dynamic Blade expressions.
Contributor
|
@LKyz24 great work, i appreciate your effort and commitment. Few things to be highlighted
your pr has lots of conflicts with the main branch to be merged resolve it, update your existing fork and update the festure then raise a pr again till then i'll not merge this. |
GitHub Actions CI
Divided into build and test
Added event_type for successfull test
conference name change in test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request addresses issue #128 by adding the register() function in EventController, which handles user registration for events. It retrieves the logged-in user's name and the event ID, creates a registration record in the database, and sends a notification to the user mail while redirecting them to the event details page with message of success on top of page.
The notification class EventNotification, which sends an e-mail to the user about successful registration for the event with the necessary information, was also modified. The email message is generated using the events.event_registration view, which displays the username, event name, and a link to the event details.
The events.event_registration.blade.php file serves as a template for the registration confirmation email, including a logo, a header, the user's name, confirmation of registration, and a link to the event details. Additionally, the user registration form HTML fragment in events.show.blade.php and events.

index.blade.php points to the events.register route with the event ID, using the POST method with CSRF protection, and features a "Register Now" button for submitting the form to the server.
Ensure that some events are created in the database, for testing the very sending of the notification to the mail.
I am also sending a picture of such a notification with an invented user event.