First, I'd suggest updating Spark. v4 is really old, and v7 is made for Laravel 5.7.
ERR_TOO_MANY_REDIRECTS when using Spark and Package with it's own routing
Using Laravel Framework 5.7.3 with Laravel Spark version 4.0.13. Started with a fresh install. Created a package under vendors\techguidesinc\gridmonsters. Added a routes folder and put web.php in that folder. I add the following route to that file:
Route::get('/home', '\App\Http\Controllers\HomeController@show');
Then I comment out the same route from the default routes\web.php folder.
When I go to the site (testsite.com/home) I get ERR_TOO_MANY_REDIRECTS in the browser. I tried clearing the cache and history in Chrome to no avail.
If I replace the HomeController line:
$this->middleware('auth'); with $this->middleware('subscribed'); Then it seems to work fine.
How do I correctly add a route to the \App\Http\Controllers\HomeController from my package so I will not get the error?
I believe I have the package requirements set up correctly since the 'subscribed' option takes me to http://testsite10.com/settings#/subscription and things seem to work fine.
Please let me know what additional information you may need.
Please or to participate in this conversation.