0
votes

I have a fresh installation of laravel 5.3,I am getting this error everytime i use a route. "NotFoundHttpException in RouteCollection.php line 161" in ......

I used php artisan make:auth and created logins and register.But still didn't work (in laravel 5.3).

After that I updated xampp to the latest version and also installed laravel 5.4, Now i am getting the same error message with a different line,"179"

Here is my route file

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

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

I have a view in view/chat.blade.php

 --------+----------+----------+------+---------+--------------+
| Domain | Method   | URI      | Name | Action  | Middleware   |
+--------+----------+----------+------+---------+--------------+
|        | GET|HEAD | /        |      | Closure | web          |
|        | GET|HEAD | api/user |      | Closure | api,auth:api |
|        | GET|HEAD | chat     |      | Closure | web          |
+--------+----------+----------+------+---------+--------------+

I maybe missing something. can someone please explain,Thank You

2
whats the url that giving you error??Sohel0415
Check your .htaccess file and add rewrite rule. follow this link if you are a linux user digitalocean.com/community/tutorials/…Sunil KhoRwal
first php artisan route:clear then add Auth::routes(); to your web.phpAH.Pooladvand
Tried route:clear then add Auth::routes(); already Nothing works !maxasela
@Sohel0415 /chatmaxasela

2 Answers

0
votes

Clear route cache

php artisan route:cache

Then you can chack your routes by

php artisan route:list
0
votes

For active login/register, You need to add auth routes to your routes/web.php

Auth::routes();