Laravel API Boilerplate for Laravel 5.5
Laravel API Boilerplate is a "starter kit" you can use to build your first API in seconds. As you can easily imagine, it is built on top of the awesome Laravel Framework. This version is built on Laravel 5.5!
Please check the official laravel installation guide for server requirements before you start. Official Documentation
Clone the repository
git clone https://github.com/viitoradmin/laravel-api-boilerplate.git
Switch to the repo folder
Install all the dependencies using composer
Copy the example env file and make the required configuration changes in the .env file
cp .env.example .env
Generate a new application key
php artisan key:generate
Generate a new JWT authentication secret key
php artisan jwt:generate
Run the database migrations (Set the database connection in .env before migrating)
php artisan migrate
Start the local development server
php artisan serve
You can now access the server at http://localhost:8000
TL;DR command list
git clone https://github.com/viitorcloudtechnologies/laravel-api-boilerplate.git cd laravel-api-boilerplate composer install cp .env.example .env php artisan key:generate php artisan jwt:generate
Make sure you set the correct database connection information before running the migrations Environment variables
php artisan migrate php artisan serve
.env- Environment variables can be set in this file
Note : You can quickly set the database information and other variables in this file and have the application fully working.
This applications uses JSON Web Token (JWT) to handle authentication. The token is passed with each request using the
Authorization header with
Token scheme. The JWT authentication middleware handles the validation and authentication of the token. Please check the following sources to learn more about JWT.
If you come across any issues please report them here.
Feel free to create any pull requests for the project. For propsing any new changes or features you want to add to the project, you can send us an email at firstname.lastname@example.org or email@example.com