How to create a restful api for a mobile application in laravel 5.2

I am creating an api for a mobile application in laravel version 5.2, but I do not know how to return an exception in JSON format. I was developing the api and tested the chrome postman.

Please help me, how can I start with laravel 5.2?

I cannot figure out how to set the error response in laravel 5.2. I already tried under the plugin but still failed:

  • json-api with laravel,
  • dingo / api, it works with laravel 4

How can we authenticate in laravel 5.2 from a mobile application?

Something good, links and video links so I can learn and develop in laravel 5.2 very friendly.

+4
source share
2 answers

Restful API Laravel 5.2 API Laravel.

https://github.com/InfyOmLabs/laravel-generator

Token, .

https://gistlog.co/JacobBennett/090369fbab0b31130b51

, / API Laravel Generator, .

php artisan infyom: api_scaffold --fromTable --tableName =

, Restful API, Laravel 5.2

+4

- Android Laravel 5.2, Rest API . API Guard . . Android, AngularJS . https://github.com/chrisbjr/api-guard. ​​ . , , .

+2

Source: https://habr.com/ru/post/1623206/


All Articles