Laravel Showing Database details when having an error - laravel-5

I am using Laravel for my new application, but whenever any error comes while doing the code its shows me the reason for that error but also list all the details of the database as well.
Is there any way I can hide those details
Thanks

Related

Trouble with nextjs.herokuapp

To start with I am not a developer, I know this might sound like a dumb question but it is a problem that I am facing and Heroku support system doesn't seem to be cooperative so I thought I try here.
I am facing an issue getting into our Website CMS (Strapi), We keep on getting this error and I can't figure out anyway to fix it, My login details have just gone bad!!!
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
Please Helpenter image description hereenter image description here
re created my strapi account

Laravel determine which controller returned error , laravel breeze

I'm using laravel breeze and I have two popups modals in the header, one for login and one for signup, when an authentication error occurs I want to: A) open the modal responsible and B) show the error in the correct modal, any ideas?
I solved it using $request->validateWithBag instead of $request->validate and checked for the "Bag" in script section with $errors->nameOfBag->has('email') and it worked as needed

Laravel 5.4 : Login and singup working on shared hosting but not on VPS server

I move the project from shared hosting to VPS hosting now everything working fine such as inner pages, design, image loading but I am unable to login and signup now.
When I submit the login/Signup form it will redirect to the same page but without any error message.
And I also generate the Token via command do I need to do anything more to make it work.
I also check the laravel.log file and other things but unable to solve this.
Can anybody face the same issue
Issue is I do not create the session folder to store the session of Laravel 5.4

Laravel Custom Error Pages & Error Handling

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

Laravel Status in German

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

Resources