phplaravellaragon

added route to laravel project is not working


i am new to laravel world i have downloaded an existing project i have added the needed logic in a new controller and added the route for that controller to web.php after that i tried to access the page but i was getting error 404 i thought it was something wrong with my controller so i have used the existing controller logic in my new route i have restarted apache, mysql, laragon but still getting 404

the new route it almost like the existing one just copy past and added a character but still the old route works but not the new one

i am using laravel 9 with laragon

any advise ??

i have tried to restart laragon but it didnt work


Solution

  • You have too run:

    php artisan route:clear
    php artisan cache:clear