I want to know if its possible to set some Laravel status in another language.
Sometimes I got this status:
The page has expired due to inactivity.Please refresh and try again.
The website looks like this:
How is it possible to say to Laravel I want all these pages in German?
I searched so many things and I changed these error messages in German but I cant find anything to change websites like this?
You can create new HTTP errors views.
resources/views/errors
This one is 419 error, I think.
Laravel DOC here
Related
I'd like to add different error in route "/oauth/token" if User's status is active or not. I check the documentation but I don't find anything. Any suggestion? Thanks!
I attached image that what is showing. When I logged in after that it redirect to home page but here 404 error is showing. And I am new in Laravel and I don't have any idea what I should do and see lots of video regarding this and sped lot of time but 0 result.
#sabia Can you also share your, probably, HomeController. Or it looks like it is already wanting to go to some sort of shopping cart? So not after login anymore?
Or... if it does happen after login, your Auth\LoginController probably
Simple Question: I want to redirect or change the "Routing Error" page so the user cannot see all the routes. (*Not 404, etc)
I'm not sure if this will go away once it is in production, but I didn't see anyone talking about this page specifically.. Nothing is broken, I just don't want to show the Routes page incase a user session ends.
Thanks SO
What I have done:
Stackoverflow has question/answer for changing a 404 page etc which I have done.
It also has posts about routes that don't work which isn't my problem. All routes work.
I have tried to research modifying the ActionController::RoutingError and that is why I came here
The routing error page you see by default during development will include much more information than you would see in production. There, you usually only see a generic 404 error page. You can check this yourself by starting your app with
RAILS_ENV=production rails server
Make sure to configure your database appropriately for production too. If you want to setup custom handling for routing errors in production, e.g. to render a specific page), please refer to the answer on rescue_from ActionController::RoutingError in Rails 4.
I need to show suggestions related to its model if the model is not found. Let say User is accessing Job ABC21, but this job is no longer exist, and therefore Laravel displays an 404 Error page. Laravel by default only shows 404 Error Title and Message, however I want to change them by displaying list of Jobs suggestions.
Same scenario goes to other models.
I know that we can modify the view of 404 Error page by creating 404.blade.php inside resources/views/errors. But it only change the view.
How can I work around on this?
Thank You
This time i am having a weird problem about a Joomla 1.5 website.
When I try to add new article (number 3093) to a section/category that is in the menu and then I try to retrieve it, when i call the single article page i get an error. I can't say it's a 500 error because in my hosting logs and in joomla log i can't find any trace of the error.
Even when I curl the documents what i get is an empty response.
I checked the MYSQL databases and the article are here, i tried to recover a backup of the database and everything went ok, but when i try to add the article > 3093 i cannot retrieve them.
I tried changing themes, removing mod_rewrite, debugging php and mysql, but everything is working fine, i think that something is going wrong with the controller routing.
Anyone can help, any idea or similar experience can be appreciated