-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for restricted domains #50
Conversation
config/filament.php
Outdated
*/ | ||
|
||
'path' => 'admin', | ||
|
||
'domain' => '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add a comment above the config option, like the path
one above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I think it might make sense to allow using an env()
here too, that way you could change the domain based on staging, production, local, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryangjchandler yes I agree, I updated my PR
@jeroenvanrensen Should the default value be null instead of an empty string? |
Thank you! |
@ryangjchandler I tested it with an empty string and it worked, so I don't think so |
Hi,
First of all, I have to say I absolutely love Filament! I really like the syntax and the ease of use.
I would like to use Filament only on a specific domain, so I created this PR.
This PR allows anyone to select a domain, and only from this domain Filament will be usable. All other domains will throw a 404 errorr.
If a user leaves the option empty, all domains will be allowed.
Thank you!
Jeroen