Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@clasense4
Created November 10, 2016 05:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clasense4/cbb0ab35dfbe59621cf3685c26eadb4c to your computer and use it in GitHub Desktop.
Save clasense4/cbb0ab35dfbe59621cf3685c26eadb4c to your computer and use it in GitHub Desktop.
AWS EB Worker Laravel Route Separation
<?php
# file : bootstrap/app.php
# ........
/*
|--------------------------------------------------------------------------
| Load The Application Routes
|--------------------------------------------------------------------------
|
| Next we will include the routes file so that they can all be added to
| the application. This will provide all of the URLs the application
| can respond to, as well as the controllers that may handle them.
|
*/
if (app()->environment('worker')) {
$app->register(Dusterio\AwsWorker\Integrations\LumenServiceProvider::class);
} else {
$app->group(['namespace' => 'App\Http\Controllers'], function ($app) {
require __DIR__.'/../app/Http/routes.php';
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment