With Laravel 5.5 an awesome feature was added to the core: API Resources. If you have not done it already give it a try. As usual it is well explained in the documentation. For our API we needed one feature which is not…