Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use Errors Handling in Laravel 8 #625

Open
matupaarela opened this issue Oct 16, 2021 · 1 comment
Open

use Errors Handling in Laravel 8 #625

matupaarela opened this issue Oct 16, 2021 · 1 comment

Comments

@matupaarela
Copy link

How to format the exceptions correctly in laravel 8, since in this version there is no longer the render method, there is the register method but it does not receive the $ request parameter

@lindyhopchris
Copy link
Member

The render method does still exist, so if you follow the installation instructions you will still get JSON:API errors. We maybe need to update it at some point as Laravel has changed how you can plug into the exception handler. However this isn't a high priority as it still works using the render method, and this package is technically deprecated in favour of the new laravel-json-api/laravel package.

I'd recommend that if you are starting out on a new project, you install the new package instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants