I have started working in a existing laravel project, I found all the routes placed in routes/web.php as usual. But When I declare a new route it does not work even not found on artisan route:list
command.
So what I've tried so far is finding out how existing routes are working, for that I just deleted some routes from existing routes/web.php file, But I was just wondered finding it has no effect over the project. all the deleted routes still redirects to specified methods of the controllers and all the functionalities are working fine. so it looks like there is another file to place the routes instead of default web.php
I have cleared all the caches like
php artisan config:cache
php artisan cache:clear
php artisan view:clear
all the routes on web.php are as below
Route::group(['middleware' => ['auth']], function() {
//all routes are declared here like
Route::get('/', 'HomeController@index'); //example route
});
So is there any way to find out the route file working behind the scene?
Or is it really possible to change the default path of route file then routes/web.php?