Skip to content

Laravel 5.8 JWT auth with api controller(for responses)

Notifications You must be signed in to change notification settings

jeffngugi/laravel-jwt-auth

Repository files navigation

Laravel 5.8 API boilerplate with JWT

This is a laravel API boilerplate with a fully set up JWT for token and middleware

Routes in

Method URI Action Middleware
GET|HEAD / Closure web
POST api/auth/login App\Http\Controllers\AuthController@login api
POST api/auth/logout App\Http\Controllers\AuthController@logout jwt.verify
POST api/auth/me App\Http\Controllers\AuthController@me jwt.verify
POST api/auth/refresh App\Http\Controllers\AuthController@refresh jwt.verify
POST api/auth/register App\Http\Controllers\AuthController@register jwt.verify

To protect a route, Use jwt.verify middleware

About

Laravel 5.8 JWT auth with api controller(for responses)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published