Hello i started learning php laravel framework today and as far as i learned i can say its great framework. My problem is declaring the links to other files. Here is the route for file register.blade.php
web.php
Route::group(['prefix' => 'auth'], function() {
Route::get('register', [
'as' => 'get_register',
'uses' => 'Auth\AuthController@getRegister'
]);
Route::post('register', [
'as' => 'post_register',
'uses' => 'Auth\AuthController@postRegister'
]);
});
and im linking it like this in navigation.blade.php
<li><a href="{{ URL::route('get_register')}}">Register</a></li>
When i try to access this page i get an error saying
Sorry, the page you are looking for could not be found.
NotFoundHttpException in RouteCollection.php line 161:
The path is: http://localhost/testapp/public/auth/register
Im really confuzed i have created the register.blade.php
file and it cannot display why is that ?