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

User should recieve a mail notification on event registeration #128 #213

Open
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

LKyz24
Copy link

@LKyz24 LKyz24 commented Nov 3, 2024

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
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.

@darshan45672 darshan45672 added help wanted Extra attention is needed Upgrade labels Nov 4, 2024
@darshan45672
Copy link
Contributor

@LKyz24 great work, i appreciate your effort and commitment.
my team has already started working on it and are almost done with the email notification part

Few things to be highlighted

  • your branch is not updated with the main
  • event registeration and authentication is already integrated with the main branch
  • instead of creating a new template file for mail you can make use of EventNotification.php and design there itself.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed Upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants