PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, January 13, 2022

[FIXED] I can not create new Routes in Laravel project

 January 13, 2022     laravel, laravel-8     No comments   

Issue

I was developing a Full-Stack Laravel project using livewire and tailwind CSS in the front, everything was working just fine, I even did 5 commits on GitHub on this project. The problem is I came back to continue developing the project, and when I create new routes, Laravel returns 404 PAGE NOT FOUND, I even tried to test a very simple route, and it did not work too(404 page not found)

Route::get('/test', function () {
    return 'hi';
});

Any solution to this weird problem?


Solution

Might be a chaching problem.

Try clear your cache by running

php artisan cache:clear
php artisan clear

You can also check all registered routes by running php artisan route:list.

If thats not working it could also be a problem with the browsers internal cache. Had something like this before with Firefox.

Try using curl to access the endpoint

curl http://localhost:8080/test



Answered By - Tobi
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing