mardi 19 juillet 2016

NotFoundHttpException in RouteCollection.php line 161.

Am trying to create a login form using 'http://localhost/myproject/public/auth/login' but i keep getting that error. Below is my routes.php :

Route::get('/', function () {
return view('welcome');
});

// Authentication routes...
Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::post('auth/login', 'Auth\AuthController@postLogin');
Route::get('auth/logout', 'Auth\AuthController@getLogout');

// Registration routes...
Route::get('auth/register', 'Auth\AuthController@getRegister');
Route::post('auth/register', 'Auth\AuthController@postRegister');

I have also create resources\views\auth\login.blade.php file. Can anyone please help since i'm following Laravel 5.1 on this but can't quite know whats wrong.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire