Open code23-isaac opened 2 years ago
Thanks for trying out the package! Does it work for you when you try the route /tnt-analytics
?
https://myurl.test/tnt-analytics
Also, do you maybe have a wildcard route, something like Route::get('/{any}', ...
Hi @nticaric,
Sorry, I raised the issue, but I was logged in with my colleague's github account accidentally.
Thanks for the quick response.
Yes, I have a wildcard route:
Route::get('{slug?}', '\App\Http\Controllers\PageController@getPage')->where('slug', '.+')->name('page');
That's the last in the web.php file.
What is you suggestion to overcome that issue?
Could you maybe do something similar when Voyager does and create a entry in the web.php like Voyager::rotes()
(https://github.com/the-control-group/voyager/blob/1.5/src/Voyager.php#L270)
Or should I try to exclude it with a regex here: ->where('slug', '.+')
For example that works: ->where('slug', '^(?!'.str_replace('/', '\/', config('tnt-analytics.url_prefix')).').*$')
in my case
I will see if we can do something on the package level, for now, I guess a quick fix would be to set the route to /search/analytics
or something similar
TNT_ANALYTICS_PATH="/search/analytics"
Hi there,
I just purchased the package and I'm not able to access the dashboard at all.
I installed it according to your docs without any errors, I've set
TNT_ANALYTICS_PATH="search-analytics"
in my.env
file and removed the middleware in the tnt-analytics config file.After that I suppose I should be able to access https://myurl.test/search-analytics, but i get 404.
The searches are making entries to the
tnt_analytics_entries
table.I use: Laravel 6.2 PHP 7.4 Laravel Voyager (tcg/voyager) 1.5.2 pvtl/voyager-frontend 1.0.2 teamtnt/laravel-scout-tntsearch-driver 11.6.0 teamtnt/tnt-analytics 1.4.0 laravel/scout 7.2.1
When I do
php artisan route:list --path=search-analytics
i get this:PS: it doesn't change anything if I delete my custom path from the .env file, still 404.
Can you please help?