Skip to content

mystroken/laravel-api-boilerplate

Repository files navigation

Laravel API Boilerplate

A boilerplate to develop secured and conventional API on top of Laravel 5.6.

Dependencies:

Installation

1. Clone the project

git clone https://github.com/mystroken/laravel-api-boilerplate.git destination_folder

2. Install project dependencies

composer install

3. Generate API secret keys

cp .env.example .env
php artisan key:generate
php artisan jwt:secret

Set a correct configuration

  • config/api.php
  • config/jwt.php

Usage

— Introduction

After installing:

  • Delete .git folder: cd destination_folder && rm -rf .git/

— Add a new endpoint

  • Write Tests
  • Add route
  • Create Model
  • Create Resource
  • Create Repository
  • Create Controller
  • Create Request (Validations)

Releases

No releases published

Packages

No packages published

Languages