File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 44
55$ dripRoute = config ('genealabs-laravel-caffeine.route ' , 'genealabs/laravel-caffeine/drip ' );
66
7- Route::get ($ dripRoute , Drip::class.'@drip ' );
7+ Route::get ($ dripRoute , Drip::class.'@drip ' )-> middleware ( ' web ' ) ;
Original file line number Diff line number Diff line change @@ -10,15 +10,11 @@ class Service extends ServiceProvider
1010{
1111 public function boot ()
1212 {
13- app ('router ' )->group (app ("router " )->hasMiddlewareGroup ('web ' )
14- ? ['middleware ' => 'web ' ]
15- : [], function () {
16- require __DIR__ . '/../../routes/web.php ' ;
13+ $ this ->loadRoutesFrom (__DIR__ .'/../../routes/web.php ' );
1714
18- if (config ("app.env " ) === 'internaltesting ' ) {
19- require __DIR__ . '/../../tests/routes/web.php ' ;
20- }
21- });
15+ if (config ("app.env " ) === 'internaltesting ' ) {
16+ $ this ->loadRoutesFrom (__DIR__ .'/../../tests/routes/web.php ' );
17+ }
2218
2319 $ configPath = __DIR__ . '/../../config/genealabs-laravel-caffeine.php ' ;
2420 $ this ->mergeConfigFrom ($ configPath , 'genealabs-laravel-caffeine ' );
You can’t perform that action at this time.
0 commit comments