Enable user register even after login laravel 5

In order to enable user register even after logging in laravel, you can do following simple step:

1. Go to your RegisterController.php which is inside controllers followed by Auth.

There you get code as shown below

   public function __construct()

You can remove the $this->middleware() line entirely to prevent the middleware being applied to all your login and register routes.

This will enable you to register user even after login.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s