Feb 27, 2019
0
Level 7
Adding a ::domain() condition to Spark routes
I need to add a ::domain('myapp.com') condition to the Spark routes file in routes.php.
// i need to turn this:
$router->group(['middleware' => Laravel\Spark\Spark::mustVerifyEmail() ? ['web', 'verified'] : 'web'], function ($router) {
// into this:
$router::domain('myapp.com')->group(['middleware' => Laravel\Spark\Spark::mustVerifyEmail() ? ['web', 'verified'] : 'web'], function ($router) {
Any way to do it without copying the whole content of /src/Http/routes.php to web.php?
Please or to participate in this conversation.