avew / simple-api-with-laravel5

Simple demo of a Laravel API, using Dingo and JWT for authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple API Laravel 5

Simple demo of a Laravel API, using Dingo and JWT for authentication.


Package Included

  1. Laravel Ide Helper
  2. Jwt Auth
  3. Dingo

Installation

Step 1: Clone the repo

git clone https://github.com/avew/simple-api-with-laravel5

Step 2: Prerequisites

composer install
cp .env.example .env   
touch database/database.sqlite
php artisan migrate
php artisan db:seed
php artisan key:generate
php artisan jwt:generate

Step 3: Run

php artisan serve

Test With Postman

Import collection test in folder postman/simple-api-with-laravel5.json

Generate API Doc

php artisan api:generate --router="dingo" --routePrefix="v1"

About

Simple demo of a Laravel API, using Dingo and JWT for authentication


Languages

Language:PHP 79.3%Language:JavaScript 16.9%Language:CSS 2.6%Language:HTML 1.2%Language:ApacheConf 0.1%