{"id":18961699,"url":"https://github.com/pt-dot/laravel-error-message","last_synced_at":"2026-05-04T19:41:06.636Z","repository":{"id":57045601,"uuid":"187773328","full_name":"pt-dot/laravel-error-message","owner":"pt-dot","description":"Laravel simple error message display from exception","archived":false,"fork":false,"pushed_at":"2019-10-01T05:08:35.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-11T19:30:25.073Z","etag":null,"topics":["exception-reporting","laravel","package","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pt-dot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-21T06:16:05.000Z","updated_at":"2019-10-01T05:07:34.000Z","dependencies_parsed_at":"2022-08-24T03:40:23.153Z","dependency_job_id":null,"html_url":"https://github.com/pt-dot/laravel-error-message","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pt-dot/laravel-error-message","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pt-dot%2Flaravel-error-message","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pt-dot%2Flaravel-error-message/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pt-dot%2Flaravel-error-message/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pt-dot%2Flaravel-error-message/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pt-dot","download_url":"https://codeload.github.com/pt-dot/laravel-error-message/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pt-dot%2Flaravel-error-message/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32622724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exception-reporting","laravel","package","php"],"created_at":"2024-11-08T14:14:03.075Z","updated_at":"2026-05-04T19:41:06.600Z","avatar_url":"https://github.com/pt-dot.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Error Message Displayer\n\nSometimes in development mode, you want to display exception message to know what happened to your web application. But in production environment, you may want to display general message instead of direct exception message. Laravel error message displayer is a package for displaying exception message or trace string based on `APP_DEBUG` condition.\n\n## Requirements\n+ php 7.0+\n+ Laravel 5.5+\n\n## Installation\n\nInstall package through composer.\n\n```bash\ncomposer require ptdot/errormessage\n```\n\nNext, if using Laravel under 5.5, include the service provider and Facade within your `config/app.php` file.\n\n```php\n'providers' =\u003e [\n    Ptdot\\ErrorMessage\\ErrorMessageServiceProvider::class,\n],\n\n'aliases' =\u003e [\n    'ErrorMessage' =\u003e Ptdot\\ErrorMessage\\ErrorMessage::class,\n]\n```\n\nSince Laravel 5.5+ is using Package Discovery, there is no need manually insert service provider and facade inside your `app.php`.\n\n## Configuration\n\nPublish config using command:\n\n```bash\nphp artisan vendor:publish\n```\n\nSet your default error message in `config/errormessage.php`.\n\n## Basic Usage\n\nYou may use this package to handle exception display through your REST API or flash message.\n```php\n\u003c?php\n\n// default usage using facade\ntry {\n    throw new \\Exception('This is exception message');\n} catch (\\Exception $exception) {\n    return response()-\u003ejson([\n        'errors' =\u003e ErrorMessage::displayExceptionMessage($exception)\n    ], 500);\n}\n```\n\nIf you want to debug and need display `traceAsString` option, you may call `traceAsString()` method:\n\n```php\n// you may need traceAsString option enabled using this way:\nreturn response()-\u003ejson([\n        'errors' =\u003e ErrorMessage::traceAsString()-\u003edisplayExceptionMessage($exception)\n    ], 500);\n```\n\nWant to override default message? Don't worry this package is able to do that.\n\n```php\n// Need to override exception message? Don't worry\nreturn response()-\u003ejson([\n        'errors' =\u003e ErrorMessage::displayExceptionMessage($exception, 'exception message will be overrided with this')\n    ], 500);\n```\n\n## Contributing\n\nFeel free to report an issue or merge request if you want to help this package become better and useful.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpt-dot%2Flaravel-error-message","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpt-dot%2Flaravel-error-message","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpt-dot%2Flaravel-error-message/lists"}