diff --git a/artisan b/artisan old mode 100755 new mode 100644 diff --git a/bootstrap/app.php b/bootstrap/app.php index b92520e..9579100 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -1,9 +1,10 @@ load(); + $dotenv = Dotenv\Dotenv::create(__DIR__ . '/..'); + $dotenv->load(); } catch (Dotenv\Exception\InvalidPathException $e) { // } @@ -23,9 +24,9 @@ $app = new Laravel\Lumen\Application( dirname(__DIR__) ); - $app->withFacades(); +$app->withFacades(); - $app->withEloquent(); +$app->withEloquent(); /* |-------------------------------------------------------------------------- @@ -59,9 +60,9 @@ $app->singleton( | */ - $app->middleware([ - App\Http\Middleware\AuthenticateAccess::class - ]); +$app->middleware([ + App\Http\Middleware\AuthenticateAccess::class +]); // $app->routeMiddleware([ // 'auth' => App\Http\Middleware\Authenticate::class, @@ -96,7 +97,7 @@ $app->singleton( $app->router->group([ 'namespace' => 'App\Http\Controllers', ], function ($router) { - require __DIR__.'/../routes/web.php'; + require __DIR__ . '/../routes/web.php'; }); return $app; diff --git a/composer.json b/composer.json index e9fbf1a..273a813 100644 --- a/composer.json +++ b/composer.json @@ -6,13 +6,16 @@ "type": "project", "require": { "php": ">=7.1.3", - "laravel/lumen-framework": "5.7.*", - "vlucas/phpdotenv": "~2.2" + "dusterio/lumen-passport": "^0.2.15", + "guzzlehttp/guzzle": "^6.5", + "laravel/lumen-framework": "5.8.*", + "lcobucci/jwt": "3.3.3", + "vlucas/phpdotenv": "^3.3" }, "require-dev": { "fzaninotto/faker": "~1.4", - "phpunit/phpunit": "~7.0", - "mockery/mockery": "~1.0" + "mockery/mockery": "~1.0", + "phpunit/phpunit": "~7.0" }, "autoload": { "classmap": [ @@ -36,7 +39,10 @@ "config": { "preferred-install": "dist", "sort-packages": true, - "optimize-autoloader": true + "optimize-autoloader": true, + "allow-plugins": { + "kylekatarnls/update-helper": true + } }, "minimum-stability": "dev", "prefer-stable": true