Skip to content

Commit

Permalink
ref : update app configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanaidilp committed Aug 1, 2021
1 parent 0a2da3e commit abd04db
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,16 @@
|
*/

// $app->middleware([
// App\Http\Middleware\ExampleMiddleware::class
// ]);
$app->middleware([
// App\Http\Middleware\ExampleMiddleware::class
App\Http\Middleware\CheckLocale::class
]);

$app->routeMiddleware([
'throttle' => App\Http\Middleware\ThrottleRequests::class
// 'auth' => App\Http\Middleware\Authenticate::class,
'throttle' => App\Http\Middleware\ThrottleRequests::class,
]);

// $app->routeMiddleware([
// 'auth' => App\Http\Middleware\Authenticate::class,
// ]);

/*
|--------------------------------------------------------------------------
| Register Service Providers
Expand All @@ -98,7 +96,7 @@
$app->register(App\Providers\AppServiceProvider::class);
// $app->register(App\Providers\AuthServiceProvider::class);
// $app->register(App\Providers\EventServiceProvider::class);
$app->register(\Flipbox\LumenGenerator\LumenGeneratorServiceProvider::class);

/*
|--------------------------------------------------------------------------
| Load The Application Routes
Expand All @@ -109,8 +107,7 @@
| can respond to, as well as the controllers that may handle them.
|
*/
$app->alias('cache', 'Illuminate\Cache\CacheManager');
$app->alias('auth', 'Illuminate\Auth\AuthManager');

$app->router->group([
'namespace' => 'App\Http\Controllers',
], function ($router) {
Expand Down

0 comments on commit abd04db

Please sign in to comment.