In this chapter, we will continue to build our API. We still have a long way to go in Laravel.
We will learn how to use some features that are very common in every web application, such as authentication and the customization of API errors.
Remember, we are creating a RESTful API and, unlike traditional applications such as MVC, our error model is extremely varied and always returned when we used the JSON format.
In this chapter, you will learn how to build a solid RESTful API by doing the following:
- Dealing with request validation and error messages
- Using token-based authentication
- Dealing with Laravel resources