We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce9e7a8 commit c6a0ea8Copy full SHA for c6a0ea8
src/Providers/Service.php
@@ -10,15 +10,11 @@ class Service extends ServiceProvider
10
{
11
public function boot()
12
13
- app('router')->group(app("router")->hasMiddlewareGroup('web')
14
- ? ['middleware' => 'web']
15
- : [], function () {
16
- require __DIR__ . '/../../routes/web.php';
+ $this->loadRoutesFrom(__DIR__.'/../../routes/web.php');
17
18
- if (config("app.env") === 'internaltesting') {
19
- require __DIR__ . '/../../tests/routes/web.php';
20
- }
21
- });
+ if (config("app.env") === 'internaltesting') {
+ $this->loadRoutesFrom(__DIR__.'/../../tests/routes/web.php');
+ }
22
23
$configPath = __DIR__ . '/../../config/genealabs-laravel-caffeine.php';
24
$this->mergeConfigFrom($configPath, 'genealabs-laravel-caffeine');
0 commit comments