DoDucQuyen / example-articles-api

Using Laravel 5.5 Resources to create your own {JSON:API} formatted API

Home Page:https://medium.com/@dinotedesco/using-laravel-5-5-resources-to-create-your-own-json-api-formatted-api-2c6af5e4d0e8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel 5.5 API Resource Example App

Testing

Create a new file on the root folder called .env.testing and fill out the following variables (according with your database connection):

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=test_db
DB_USERNAME=homestead
DB_PASSWORD=secret
DB_SSL=disable

then just run the tests with:

vendor/bin/phpunit

About

Using Laravel 5.5 Resources to create your own {JSON:API} formatted API

https://medium.com/@dinotedesco/using-laravel-5-5-resources-to-create-your-own-json-api-formatted-api-2c6af5e4d0e8


Languages

Language:PHP 96.6%Language:HTML 2.8%Language:Vue 0.6%