diff options
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/app.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/bootstrap/app.php b/bootstrap/app.php index eae5bcf..04f448e 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -66,9 +66,9 @@ $app->singleton( // // Laravel\Lumen\Http\Middleware\VerifyCsrfToken::class, // ]); -// $app->routeMiddleware([ - -// ]); +$app->routeMiddleware([ + 'auth' => App\Http\Middleware\Authenticate::class, +]); /* |-------------------------------------------------------------------------- @@ -81,9 +81,13 @@ $app->singleton( | */ -// $app->register(App\Providers\AppServiceProvider::class); +$app->register(App\Providers\AppServiceProvider::class); +$app->register(App\Providers\AuthServiceProvider::class); // $app->register(App\Providers\EventServiceProvider::class); +$app->register(Illuminate\Mail\MailServiceProvider::class); +$app->register(Arubacao\BasicAuth\BasicGuardServiceProvider::class); + /* |-------------------------------------------------------------------------- | Load The Application Routes @@ -99,4 +103,6 @@ $app->group(['namespace' => 'App\Http\Controllers'], function ($app) { require __DIR__.'/../app/Http/routes.php'; }); +$app->configure('mail'); + return $app; |