简体   繁体   中英

Laravel Error - Send notification

is there any ways to handle error event (etc. send email, notification to webmaster) whenever a person encounter the error page (Whoops, looks like something wrong) in the system? Thanks

There is a error log file

storage/logs/laravel.log

Open it with any Text editor and you can find all error logs.

If are trying to handle errors and exceptions caused to due some mistake in code you should refer this page .
But if you are looking to make custom pages to handle specific error codes like 302,404,403 then you just have to make an html/php page displaying what you want just save it by the error code name for which you have made that page for.
For ex. 404.php, 403.php
Save this files under views/errors/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM