nilportugues / laravel5-jsonapi

Laravel 5 JSON API Transformer Package
http://nilportugues.com
MIT License
311 stars 70 forks source link

Documentation errors with Laravel #83

Open vanitom opened 8 years ago

vanitom commented 8 years ago

Hello,

I discovered Laravel and Lumen. I want to create a clean API. I would like to implement JSON API. I tested your library. I discovered some errors in the documentation.

For the controller, it would indicate the need to put the controller in the directory "app/Http/Controllers/Api". Since the namespace of the controller is not correct. There must be "App/Http/Controllers/Api".

In the routing Laravel should be added Road :: resource ('orders', 'OrdersController');