Created
November 10, 2016 05:59
-
-
Save clasense4/cbb0ab35dfbe59621cf3685c26eadb4c to your computer and use it in GitHub Desktop.
AWS EB Worker Laravel Route Separation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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