Skip to content

samironbarai/laravel-rest-api-jwt-auth

Repository files navigation

Laravel RESTFul API with JSON Web Token (JWT)

Installation

  1. Clone this repo
https://github.com/samironbarai/laravel-rest-api-jwt-auth.git
  1. Install composer packages
cd laravel-rest-api-jwt-auth
$ composer install
  1. Create and setup .env file
make a copy of .env.example and rename to .env
$ php artisan key:generate
put database credentials in .env file
$ php artisan jwt:secret
  1. Migrate and insert records
$ php artisan migrate
$ php artisan tinker
$ factory(App\User::class, 10)->create()
$ factory(App\Task::class, 50)->create()

To test application follow the tutorial bellow. Click on the image bellow to see YouTube video.

Laravel SMS with Nexmo

Please visit my website for written tutorial. samironbarai.com

About

Laravel RESTFul API with JSON Web Token

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors