Ajoute les 2 controllers et l'authentification

This commit is contained in:
2018-04-26 23:02:06 +02:00
parent 8c48c8daa3
commit 7ebb888bb2
6 changed files with 93 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ try {
*/
$app = new Laravel\Lumen\Application(
realpath(__DIR__.'/../')
dirname(__DIR__) . '/'
);
// $app->withFacades();
@@ -63,9 +63,9 @@ $app->singleton(
// App\Http\Middleware\ExampleMiddleware::class
// ]);
// $app->routeMiddleware([
// 'auth' => App\Http\Middleware\Authenticate::class,
// ]);
$app->routeMiddleware([
'auth' => App\Http\Middleware\Authenticate::class,
]);
/*
|--------------------------------------------------------------------------
@@ -79,7 +79,7 @@ $app->singleton(
*/
// $app->register(App\Providers\AppServiceProvider::class);
// $app->register(App\Providers\AuthServiceProvider::class);
$app->register(App\Providers\AuthServiceProvider::class);
// $app->register(App\Providers\EventServiceProvider::class);
/*