change admin directory ?

sylvanas - 4 months ago

hi how to change admin directory ?

samharrison7 - 4 months ago

If I understand you correctly, you can just define a route (e.g. in your theme's service provider) from whatever you want to the admin, such as:

protected $routes = [
        'custom-admin-uri' => 'Anomaly\DashboardModule\Http\Controller\Admin\[email protected]'

Then protected $routes = [ 'custom-admin-uri' => 'Anomaly\DashboardModule\Http\Controller\Admin\[email protected]' ]; will take you to the admin's dashboard. There might be a more recommended way to do it though...

More on service providers and routes here:

ryanthompson - 4 months ago

You can not globally change the admin directory for many many reasons. However you can create "admin" areas just like @samharrison7 mentions anywhere by simply extending the AdminController in the Streams Platform with your own controller.