Laravel 5: link to php page
I have two pages login.blade.php
and register.blade.php
. On mine login.blade.php
I have a link to the register.blade.php
following:
<a href="register.php">Register a new membership</a>
When I click the link to register.php it throws the following error:
NotFoundHttpException in RouteCollection.php line 143:
Both logins and registrations are in the same folder.
My route.php file has:
Route::get('/register', function(){
return view('register');
});
+3
source to share