Skip to content

Commit

Permalink
Merge pull request #50 from jeroenvanrensen/main
Browse files Browse the repository at this point in the history
Allow for restricted domains
  • Loading branch information
danharrin committed Mar 2, 2021
2 parents 26bdb95 + d4f95b9 commit 6430d8b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/filament.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@
*/

'path' => 'admin',

/*
|--------------------------------------------------------------------------
| Filament Domain
|--------------------------------------------------------------------------
|
| You may change the domain where Filament should be active. If the domain
| is empty, all domains will be valid.
|
*/

'domain' => env('FILAMENT_DOMAIN', null),

/*
|--------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function map()
VerifyCsrfToken::class,
SubstituteBindings::class,
])
->domain(config('filament.domain'))
->prefix(config('filament.path'))
->group(__DIR__ . '/../../routes/web.php');
}
Expand Down

0 comments on commit 6430d8b

Please sign in to comment.