Releases: mlanin/laravel-api-exceptions
Releases · mlanin/laravel-api-exceptions
Let API be API
Removed renderToHtml
Remove conversion to view
Don't use views to show exceptions in API. It is a bad practice and you will break your clients sooner or later.
Add package discovery
0.3.6 Add laravel package discovery
Add ability to override default API response format
0.3.5 Update readme
Fix tests & composer requirements
0.3.4 Fix tests
Add support of web validation errors
If this package is used in an application that uses api AND common web parts together, package should support native Laravel form validation flow like `response()->withErrors([])`. This change will handle this behaviour. You can just throw validation exception, and everything will work.
Import right HttpException
0.3.2 Import right HttpException
Hotfix
Update for L5.3
Update to support L5.3
Add exception views for non-JSON requests.
Cleanup exceptions from unnecessary info:
Leave trace only for internal errors.
Leave previous exception output only for internal errors
Remove middleware
0.1.1 Remove middleware