I want my admin to be at the root so instead of www.site.com/admin I will do www.site.com. I made some changes to the web.php and voyager.php and I have now a blank screen.
I went to "routes/web.php" and chnage this :
Route::get('/', function () {
return view('welcome');
});
to:
Route::get('/', function () {
Voyager::routes();
});
and to "config/voyager.php" and change
'redirect' => '/admin',
to:
'redirect' => '/',
Route::get('/', function () {
Voyager::routes();
});
Wont work. Just change it to
Voyager::routes();
I have made the following changes:
Route::get('/', function () {
Voyager::routes();
});
now it gives me a blank page. What else do I need to change? Thanks...
You shouldn't wrap Voyager::routes() with Route::get('/', function () { and });.
Just:
<?php
// ...
Voyager::routes();
// ...
Thank you, it works now.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.
Most helpful comment
Thank you, it works now.