Laravel RESTFul API with JSON Web Token (JWT)
Installation
- Clone this repo
https://github.com/samironbarai/laravel-rest-api-jwt-auth.git
- Install composer packages
cd laravel-rest-api-jwt-auth
$ composer install
- 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
- 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.
Please visit my website for written tutorial. samironbarai.com