php - Laravel 5.1: Registration page routing -


i developing registration process using laravel. feeling problem. i'm using implicit controller

route::controllers([     'auth' => 'auth\authcontroller',     'password' => 'auth\passwordcontroller', ]); 

my registration anchor tag link 'auth/registration'

<a class="dropdown-toggle" href="auth/register">     <span class='glyphicon glyphicon-pencil'></span>  register </a> 

when first time click link, works , show intended page. when go intended register page , click again link shows error , browser address bar show link way -

http://localhost:8000/auth/auth/register 

and give me error message - "controller method not found."

but when clicked link first time browser address bar showed link in way -

http://localhost:8000/auth/register 

and that's time link worked when click second time on register page doesn't work , show error message.

could please let me know how can fix it?

use url() method

 <a href="{{ url('/auth/register') }}">register</a>  

instead of href="auth/register" think laravel 5


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -