diff --git a/.gitignore b/.gitignore index 2896e86..be05a32 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /vendor /.idea +database/*.sqlite Homestead.json Homestead.yaml .env diff --git a/bootstrap/app.php b/bootstrap/app.php index b3df6ee..a994912 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -23,9 +23,9 @@ $app = new Laravel\Lumen\Application( dirname(__DIR__) ); -// $app->withFacades(); +$app->withFacades(); -// $app->withEloquent(); +$app->withEloquent(); /* |-------------------------------------------------------------------------- @@ -94,6 +94,7 @@ $app->configure('app'); // $app->register(App\Providers\AppServiceProvider::class); // $app->register(App\Providers\AuthServiceProvider::class); // $app->register(App\Providers\EventServiceProvider::class); +$app->register(Leenooks\SQRL\SQRLServiceProvider::class); /* |-------------------------------------------------------------------------- diff --git a/composer.json b/composer.json index b029d1b..bbfb56f 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,8 @@ "type": "project", "require": { "php": "^7.2.5", - "laravel/lumen-framework": "^7.0" + "laravel/lumen-framework": "^7.0", + "leenooks/sqrl": "^0.1.0" }, "require-dev": { "fzaninotto/faker": "^1.9.1", @@ -19,8 +20,7 @@ "database/factories" ], "psr-4": { - "App\\": "app/", - "Leenooks\\SQRL\\": "vendor/leenooks/sqrl/src" + "App\\": "app/" } }, "autoload-dev": { @@ -39,5 +39,11 @@ "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ] - } + }, + "repositories": [ + { + "type": "vcs", + "url": "https://dev.leenooks.net/leenooks/sqrl" + } + ] }