https://voyager.readme.io/docs/configurations#section-prefix-config
I try to do it. But it's can't change prefix.
Maybe i need change more configure files?
What kind of error do you get?
I open voyager.php and write my own prefix in line 108. And try to open admin panel with my prefix.
And...
Sorry, the page you are looking for could not be found.
But if i use old prefix which was admin, it's work.
Go to your routes and change prefix for Voayer routes
Route::group(['prefix' => 'yourprefix'], function () {
Voyager::routes();
});
Next will need to change all admin side menu url's in Menu Builder
Thanks you ^)
Best solution is to change from
Route::group(['prefix' => 'yourprefix'], function () {
Voyager::routes();
});
to
Route::group(['prefix' => config('voyager.prefix')], function () {
Voyager::routes();
});
@Rishats if you solve this problem please close this question
We're removing the voyager.prefix config in a future release since it's not actually used anywhere, so I wouldn't rely on it. Instead, you can just change the Route prefix as @davodavodavo3 suggested. Everything in Voyager should be using named routes, so there shouldn't be any issues with doing this.
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.