How to fix Error: laravel.log could not be opened?

Posted by

Error:

 The stream or file "/opt/lampp/htdocs/myhospitalnow/mhn-hospital-ms/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream:
  Permission denied
  The exception occurred while attempting to log: Class "DOMDocument" not found
  Context: {"exception":{}}

Solution:

If the aforementioned fixes don’t work, you can try turning on Laravel’s debug mode to learn more about the error. Set the APP_DEBUG value to true in the.env file to activate debug mode. When a 500 error happens, this will cause the browser to display thorough error messages.

Run all commands
For permission

Run

pull.sh
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x