onecentlin / laravel-adminer

Adminer database manager for Laravel 5+
MIT License
240 stars 45 forks source link

Changing route_prefix to a path makes plugins and themes stop working #28

Open fronbow opened 5 months ago

fronbow commented 5 months ago

Hi

So, I changed the config file 'route_prefix' => env('ADMINER_ROUTE_PREFIX', 'admin/adminer'), as I like to have admin tools in the admin route and now the adminer.css file fails to load. If I change the route back to adminer then it works as intended.

Cheers

onecentlin commented 5 months ago

@fronbow You may create admin folder under public folder, and move adminer.css file into admin folder It will auto load the style from path /admin/adminer.css

acid23m commented 5 months ago

I updated nginx conf to fix:

# adminer
location ~ adminer.css$ {
  access_log off;
  log_not_found off;
  try_files $uri /adminer.css;
}
fronbow commented 5 months ago

@fronbow You may create admin folder under public folder, and move adminer.css file into admin folder It will auto load the style from path /admin/adminer.css

Cheers, that sorted it :-)