This is a simple implementation of JWT with Laravel. It has basic authentication features set up.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app initial commit May 9, 2018
bootstrap
config initial commit May 9, 2018
database initial commit May 9, 2018
public initial commit May 9, 2018
resources initial commit May 9, 2018
routes initial commit May 9, 2018
storage initial commit May 9, 2018
tests initial commit May 9, 2018
.env.example added readme file May 9, 2018
.gitattributes initial commit May 9, 2018
.gitignore initial commit May 9, 2018
artisan initial commit May 9, 2018
composer.json initial commit May 9, 2018
composer.lock initial commit May 9, 2018
package.json initial commit May 9, 2018
phpunit.xml initial commit May 9, 2018
readme.md Added Open source badge to readme file Oct 4, 2018
server.php initial commit May 9, 2018
webpack.mix.js initial commit May 9, 2018
yarn.lock initial commit May 9, 2018

readme.md

Open Source Love

Laravel and JWT

This is a simple implementation of JWT with Laravel. It has basic authentication features set up.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software.

  • Git.
  • PHP.
  • Composer.
  • Laravel CLI.

Install

Clone the git repository on your computer

$ git clone https://github.com/fisayoafolayan/laravel-jwt.git

You can also download the entire repository as a zip file and unpack in on your computer if you do not have git

After cloning the application, you need to install it's dependencies.

$ cd laravel-jwt
$ composer install

Setup

When you are done with installation, copy the .env.example file to .env

$ cp .env.example .env

Generate the application key

$ php artisan key:generate

Generate JWT secret

php artisan jwt:secret

Create sqlite file

touch database/database.sqlite

Migrate the application

$ php artisan migrate

Run the application

$ php artisan serve