Email verification Laravel

loktoy

Established
baka pwede nyo po ako mabigyan ng link o source ng code para sa gusto ko logic po...
bali po gusto ko mangyari ay yun admin lang ang pwede mag register sa mga user para limitado lang yun pang register ngaun gusto ko sana admin yun mag reregister tapos mag sesend ng link sa email ng user pagkatapos malink nila ay mapupunta sila sa create password kumbaga sila gagawa ng password nila.. after nila maglagyan ng password ay didiritso na sila sa log in page.... Laravel newbie lang po.
 
Hello! I can help you achieve the logic you described using Laravel. Here's a high-level overview of the steps you can take to implement this functionality:

1. Create User Registration and Login Functionality:
- Set up user authentication using Laravel's built-in php artisan make:auth command.
- This will create the necessary routes, controllers, and views for user registration and login.

2. Implement Admin Registration:
- Create a custom registration form for the admin.
- Add logic to differentiate between admin and regular user registration.
- You can achieve this by adding a role column to the users table and setting the role as "admin" for admin users during registration.

3. Generate Unique Registration Links:
- When the admin registers a new user, generate a unique registration link that includes a token.
- You can use Laravel's built-in functionality for this purpose. Check out Laravel's documentation on generating URLs with signed routes.

4. Send Registration Link via Email:
- Use Laravel's email functionality to send the registration link to the user's email address.
- You can create a mailable class to customize the email content and include the registration link.

5. Create Password Setting Page:
- When the user clicks on the registration link, direct them to a page where they can set their password.
- Create a form where the user can input their password.

6. Finalize Registration and Redirect to Login:
- Once the user sets their password, update the user record in the database with the password.
- Redirect the user to the login page so they can log in with their newly set password.

Remember to handle edge cases such as expired registration links, validation of passwords, and ensuring the security of the registration process.

If you need more specific guidance or code snippets for any of these steps, feel free to ask! I'd be happy to provide more detailed assistance.
 
basic nasa laravel docs lang yn
cge cge po sir try ko po basahin pero maliban po sir sa laravel docs baka may alam ka pa po tutorial o video tungkol po sa logic ko o source code po

I advise to read the laravel documentation.
cge cge po sir try ko po basahin pero maliban po sir sa laravel docs baka may alam ka pa po tutorial o video tungkol po sa logic ko o source code po
 
Kung ako tatanungin mo na logic; regarding sa admin registration is mas bet ko yung ni mano mano ko sha sa local creation yung administrator kasi yun ginawa namin sa project namin nung last year (2nd year IT ako last year) is nag register ako as normal user tas gamit yung MYSQL na database pinalitan ko lng yung USERROLES ko into ADMIN, pwede ka rin naman gumawa ng registration for admin pero if admin kasi mas maganda talaga inserted na sa backend mo yung admin since admin yan, tas saka na yung another shii like gaya sa project namin is may admin acc nagawa na tas pwede mag register yung mga instructor na pwede eh verified at eh edit nung admin gamit yung admin panel nya...

Aside gustohin ko man mag send ng YT link kaso bawal kasi dito, now regarding naman sa MAG SESEND NG LINK is you mean ba yung may parang OTP or EMAIL VERIFICATION? if ganun hinahanap mo kuys gumamit kana ng SMFTP bayun? or hanap ka ng API for EMAIL OTP/VERIFICATION...

Same din yun sa sinabi ko yung dederetso sa login page at dashboard andun sa yt try mo search "Laravel Admin and User Login Dashboard"...
 

Similar threads

About this Thread

  • 5
    Replies
  • 545
    Views
  • 4
    Participants
Last reply from:
WizKhalifaX_

Trending Topics

Online now

Members online
1,043
Guests online
1,272
Total visitors
2,315

Forum statistics

Threads
2,273,819
Posts
28,951,958
Members
1,234,972
Latest member
iownnoobs21
Back
Top