Laravel API starter Kit will provide you with the tools for making API's that everyone will love
HTML PHP Other
Clone or download
Permalink
Failed to load latest commit information.
app remove predis so it is added only if redis is used and laravel uuid i… Mar 23, 2018
bootstrap Laravel 5.4 version Feb 9, 2017
config remove service providers in favor of autodiscovery Feb 16, 2018
database Add unique to Uuid #34 Sep 9, 2017
docker Lots of cleanup, remove Laravel API Tools, Dingo and some tests. Jun 7, 2017
docs/api/blueprint #22 Add Asset API endpoint to upload a file from a URL or request body. Aug 8, 2017
public lots of clean up Jun 18, 2017
resources #22 Add Asset API endpoint to upload a file from a URL or request body. Aug 8, 2017
routes #22 Add Asset API endpoint to upload a file from a URL or request body. Aug 8, 2017
storage remove keys from Git Jun 19, 2017
tests move pics for testing to a Resources folder. Mar 23, 2018
.dockerignore update docker ignore and readme Dec 1, 2017
.env.example Add Docker, partial user relationships, JSON API spec, api blueprint … May 30, 2017
.gitattributes Install composer packages Feb 25, 2016
.gitignore lots of clean up Jun 18, 2017
.travis.yml requires php 7.1 minimum Dec 28, 2017
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Aug 8, 2017
CONTRIBUTING.md Create CONTRIBUTING.md Aug 8, 2017
Dockerfile minor docker changes and demo. Dec 1, 2017
LICENSE Add License Aug 8, 2017
artisan Laravel 5.4 version Feb 9, 2017
composer.json Update laravel scaffold Jul 26, 2018
composer.lock Update laravel scaffold Jul 26, 2018
package.json lots of cleanup and more tests Jun 7, 2017
phpunit.xml Upgrade Laravel API Tools and use Dingo API. May 23, 2017
readme.md update to Dingo 2.0.0-alpha1 Dec 28, 2017
server.php Laravel 5.4 version Feb 9, 2017
webpack.mix.js Laravel 5.4 version Feb 9, 2017
yarn.lock lots of cleanup and more tests Jun 7, 2017

readme.md

Laravel API Starter Kit

Build Status StyleCI Total Downloads License

Laravel API starter Kit will provide you with the tools for making API's that everyone will love, API Authentication is already provided with passport.

Here is a list of the packages installed:

Installation

To install the project you can use composer

composer create-project joselfonseca/laravel-api new-api

Then run composer install again and the error should be gone.

Modify the .env file to suit your needs

APP_ENV=local
APP_DEBUG=true
APP_KEY=base64:JqyMTmt5qr1CW6BH+GG+4iKfU4RiNjZTLy33TdTT7+4=

API_STANDARDS_TREE=vnd
API_SUBTYPE=api
API_PREFIX=api
API_VERSION=v1
API_DEBUG=true

DB_HOST=localhost
DB_DATABASE=laravel_api
DB_USERNAME=homestead
DB_PASSWORD=secret

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

When you have the .env with your database connection set up you can run your migrations

php artisan migrate

Then run php artisan passport:install

Run php artisan app:install and fill out the information of the admin user.

You should be done with the basic installation and configuration.

Tests

Navigate to the project root and run vendor/bin/phpunit after installing all the composer dependencies and after the .env file was created.

License

The Laravel API Starter kit is open-sourced software licensed under the MIT license