I have Laravel 5.0 version, whenever the user types any route that wasnt present, system throws the following exception message.
Sorry, the page you are looking for could not be found.
1/1
NotFoundHttpException in compiled.php line 7959:
in compiled.php line 7959
at RouteCollection->match(object(Request)) in compiled.php line 7230
at Router->findRoute(object(Request)) in compiled.php line 7202
at Router->dispatchToRoute(object(Request)) in compiled.php line 7194
at Router->dispatch(object(Request)) in compiled.php line 2040
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9244
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Debugbar.php line 49
at Debugbar->handle(object(Request), object(Closure)) in compiled.php line 9236
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2548
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 29
at VerifyCsrfToken->handle(object(Request), object(Closure)) in compiled.php line 9236
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12416
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in compiled.php line 9236
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 11106
at StartSession->handle(object(Request), object(Closure)) in compiled.php line 9236
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12118
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in compiled.php line 9236
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12066
at EncryptCookies->handle(object(Request), object(Closure)) in compiled.php line 9236
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2589
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in compiled.php line 9236
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9227
at Pipeline->then(object(Closure)) in compiled.php line 1996
at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 1983
at Kernel->handle(object(Request)) in index.php line 53
I have checked the permissions for storage folder as well, which is already set as 0755. Also I have already tries php artisan clear-compiled php artisan optimize php artisan cache:clear, but still it didnt work.
This error is happening only when the user types a route that wasnt present, for rest of the routes that already exists in route.php the site is working fine.
Any help in fixing the issue is highly appreciated.