Skip to content

Commit ea56d47

Browse files
committed
Set web middleware to get token
1 parent f5a748f commit ea56d47

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Providers/RouteServiceProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ class RouteServiceProvider extends \Illuminate\Foundation\Support\Providers\Rout
2222
*/
2323
public function map(Router $router)
2424
{
25-
$router->group(['namespace' => $this->getNamespace()], function () {
25+
$router->group([
26+
'namespace' => $this->getNamespace(),
27+
'middleware' => ['web'],
28+
], function () {
2629
$this->requireRoutes();
2730
});
2831
}

0 commit comments

Comments
 (0)