Skip to content

Commit

Permalink
Make admin path configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
flowan committed Feb 3, 2024
1 parent c5106a7 commit 3b86777
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 146 deletions.
2 changes: 1 addition & 1 deletion app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function panel(Panel $panel): Panel
return $panel
->default()
->id('admin')
->path('admin')
->path(config('warehouse.admin.path'))
->login()
->colors([
'primary' => Color::Amber,
Expand Down
2 changes: 1 addition & 1 deletion config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

'local' => [
'driver' => 'local',
'root' => env('WAREHOUSE_STORAGE_PATH', storage_path('app')),
'root' => config('warehouse.storage.path'),
'throw' => false,
],

Expand Down
11 changes: 11 additions & 0 deletions config/warehouse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
'storage' => [
'path' => env('WAREHOUSE_STORAGE_PATH', storage_path('app')),
],

'admin' => [
'path' => env('WAREHOUSE_ADMIN_PATH', '/'),
],
];
Loading

0 comments on commit 3b86777

Please sign in to comment.