fatonsopa/lumen-dingo-adapter

Using Dingo + JWT in your Lumen Based Application with no pain

dev-master 2023-07-23 20:28 UTC

This package is not auto-updated.

Last update: 2024-11-12 00:53:45 UTC


README

Using Dingo + JWT in your Lumen Based Application with no pain.

Installation

composer require fatonsopa/lumen-dingo-adapter

Configuration

In your bootstrap/app.php file add this line:

$app->register(Zeek\LumenDingoAdapter\Providers\LumenDingoAdapterServiceProvider::class);

Below is environment variable you should configure to make this package works out of the box:

API_PREFIX=api

Guarding Your Routes via Dingo Routing

$app->make(Dingo\Api\Routing\Router::class)->version('v1', function ($api) {
    $api->group([
        'middleware' => 'api.auth',
    ], function ($api) {
        $api->get('/', 'App\Http\Controllers\DefaultController@index');
    });
});

This package is copy of (https://github.com/krisanalfa/lumen-dingo-adapter).