-
Notifications
You must be signed in to change notification settings - Fork 25
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
User should recieve a mail notification on event registeration #128 #213
Open
LKyz24
wants to merge
27
commits into
Ajiet-DevNation:main
Choose a base branch
from
LKyz24:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
…dynamic Blade expressions.
@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
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.
![mail notification](https://private-user-images.githubusercontent.com/183413297/382580237-204917a8-48a9-43bc-8b44-8f8cfca67402.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0OTU4OTgsIm5iZiI6MTczOTQ5NTU5OCwicGF0aCI6Ii8xODM0MTMyOTcvMzgyNTgwMjM3LTIwNDkxN2E4LTQ4YTktNDNiYy04YjQ0LThmOGNmY2E2NzQwMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQwMTEzMThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lYzIyNTRlZThhYzM1ZGRhODA3NGJkYzFkNTM1MDliNGY0NTVlY2Y5NzFlNThlNmYzMmE3YTJmZGI1YjU3OTdlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.cK1walkejip9r4aPntBs-OjeMd9wYC5CFIXCm-Qw78A)
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.