I'm noob in Laravel and working with Laravel 5. For user registration and and login, I want to use default system of laravel. But, need to extend it with two following features:
- User will get an email just after registration.
- Upon saving of user registration, I need to make an entry in another role table (I've used Entrust package for role management)
How to do these things?
You can modify Laravel 5 default registrar located in app/services
Inside
resources/emails/welcome.blade.php
NB: You need to create route/controller for verify
Laravel has an empty method named registered in Illuminate\Foundation\Auth\RegistersUsers trait to simplify this operation, just override it as following:
First add a new Notification:
Add this use line to your RegisterController.php:
and add this method:
You are done.