Product support

Get help in the plugin support forum.


  • Security
  • Social


After plugin installation you need to create {root}/config/auth.php file with the following content, otherwise you'll got an error:

return [
    'driver' => 'database',
    'table' => 'users',

This plugin provides token based authentication to your application. Is based on the awesome package JSON Web Token Authentication for Laravel & Lumen by Sean Tymon.


You may like my other plugins


The plugin provides 2 endpoints: /api/login and /api/signup.


Expects 2 parameters to receive: email and password. Makes attempt to authenticate and returns token if succeeded. Also the basic user info is included in the response.


Expects 3 parameters to receive: email, password and password_confirmation. Tries to create a user and returns token if succeeded. The user info is included in the response.

  • Found the plugin useful on 14 Sep, 2017

    :) Thanks Art Gek.


    How to use this in another plugin?

    Simply add ->middleware('jwt.auth') to the end of the route in the plugin's routes.php


    Route::post('test', function (\Request $request) { return response()->json(('The test was successful')); })->middleware('jwt.auth');

    Then when making the request set the header "Authorization" to "Bearer {yourToken}"

  • Found the plugin useful on 17 Jun, 2017

    Great plugin. Works like it should. I used it inside my login routes. And disabled the default once. Thanks Art Gek

  • author

    Replied on 18 Jun, 2017

    Glad it was useful =)


Custom service provider and config file added.

Jan 31, 2017


Initialize plugin.

Jan 29, 2017