Changing the admin path
Oct 15, 2026
The admin area is at /admin by default. Moving it to an address only you know stops bots from finding the sign-in page.
Change it
-
Open the
.envfile in the application folder (File Manager or SSH). -
Set
ADMIN_PATHto the new segment, for example:ADMIN_PATH=office-9x3k -
Clear the cache:
php artisan optimize:clearIf you have no SSH access, delete the files starting with
configandroutesinbootstrap/cache. -
The admin area is now at
https://your-domain.com/office-9x3k. The old/adminaddress returns a plain 404, so it does not reveal that an admin panel exists.
Notes
- This is deliberately a server-side setting. There is no screen for it in the admin area.
- A path cannot be the same as a public section, such as
order,cart,checkout,client,status,knowledgebaseordocs. - Tell your staff the new address and update any bookmarks and monitoring.
- If you forget it, read
ADMIN_PATHin.env.