September 2017
Intermediate to advanced
244 pages
6h 44m
English
An easier way is to install both Dingo API package and JWT Auth yourself is to simply install https://packagist.org/packages/krisanalfa/lumen-dingo-adapter.
It will add Dingo and JWT in your Lumen-based application. Simply install this package:
composer require krisanalfa/lumen-dingo-adapter
Then, in bootstrap/app.php, add the following lines of code:
$app->register(Zeek\LumenDingoAdapter\Providers\LumenDingoAdapterServiceProvider::class);
Now, this way, we are using this LumenDingoAdapter package, so here is the bootstrap/app.php file that we will use so that you can compare it with yours:
<?phprequire_once __DIR__.'/../vendor/autoload.php';try { (new Dotenv\Dotenv(__DIR__ ...
Read now
Unlock full access