chintan-trivedi's avatar

NotFoundHttpException in RouteCollection.php line 161:

Hello, the issue is: my site was working earlier, what i did is I run these commands: php artisan clear-compiled, php artisan cache-clear, php artisan view-clear. After running these commands when i hit the url, my site goes down and started giving error : NotFoundHttpException in RouteCollection.php line 161. Any body please help me with this.

0 likes
22 replies
tykus's avatar

when i hit the url

Is the URL in your routes file?

tykus's avatar

Is that en for locale? Are you using a package to determine the locale to use, or is this something you rolled yourself?

tykus's avatar

Are you using some third party package for localization?

chintan-trivedi's avatar

well I am not sure about it, if you guide me about how to make sure for this, I can tell you then.

tykus's avatar

Well, there is nothing in your routes file which will match the jumpnotes.com/en URL. The closest thing I see is:

Route::get('localization/{lang?}','LanguageLocalizationController@index');
chintan-trivedi's avatar

so, what do you suggest at this stage my friend, I am totally new in laravel.

chintan-trivedi's avatar

If you can guide me , to run atleast any of one url/route. that will be big help.

Route::get('/flush', function(){ Artisan::call('config:cache'); Artisan::call('view:clear'); Artisan::call('cache:clear'); Artisan::call('route:clear'); //Cache::flush(); return redirect('/'); }); At least this should work

Snapey's avatar

and does /flush work ?

You are saying it should, but does it?

Please or to participate in this conversation.