Povilas K
Changing registration form
For customizing registration, you would need to build your Registration class, like here: https://filamentphp.com/docs/3.x/panels/users#customizing-the-authentication-features
Our tutorial about adding extra field: https://laraveldaily.com/post/filament-registration-form-extra-fields-choose-user-role
But you can add more fields, and/or you can build a Wizard inside that class, too, with your second step.
For checking the fields on every action, you would need to build a Laravel Middleware, and then apply it on the panel here: https://filamentphp.com/docs/3.x/panels/configuration#applying-middleware-to-authenticated-routes
4 replies
Bootstrap for Landing Page?
Filament is based on Tailwind and it is not compatible with Bootstrap in any other way.
So you can have your existing project with Bootstrap, and then link so the adminpanel
/admin
which would be Filament.
So, two separate projects.3 replies
multiple panels on single dashboard as tabs?
I don't think it's possible, as each panel in Filament requires its own settings, URL, etc.
Unless you're talking about non-Filament outside app which would show those links as tabs with checking permissions, and then inside you would have those three tabs.
Or a separate ovrerarching Filament installation on some subdomain that would lead to those three separate links on another subdomain
9 replies
I try to seed using has function for relationship but does not create child record.
I would raise another question: why you need house_no in both parent and child records? The relationship should be probably by property_services.property_id with hasMany.
And if you do need that house_no in the property_services, you can call it by relationship: property_service.property.house_no
7 replies
Customize VerifyEmail template and other login related emails
Here's our tutorial on it: https://laraveldaily.com/post/filament-customize-auth-emails-reset-password-user-verification
10 replies
Custom Database Notification Model
@Rad not sure if I'm not too late, but we experimented and came up with this solution. Create your own class extending BaseNotification, then bind it in the provider, and then use it where needed.
app/Filament/Notification.php:
app/Providers/AppServiceProvider.php:
Then, in the Create pages or wherever you need, call your Notification class:
app/Filament/Resources/PostResource/Pages/CreatePost.php:
4 replies
How do I hide panels based on the User who is logged in? Its for a school management system.
@MZX so yeah, it means you're working within the same panel, then it's a simple version of just using Laravel Policies as the link stated earlier. Or another example specifically for Deleting records: https://filamentphp.com/docs/3.x/panels/resources/deleting-records#authorization
10 replies
Access Control for the Resource?
Users may access the Edit page if the update() method of the model policy returns true.
https://filamentphp.com/docs/3.x/panels/resources/editing-records#authorization
5 replies
Access Control for the Resource?
It should be handled by Laravel Policies
https://filamentphp.com/docs/3.x/panels/resources/getting-started#authorization
5 replies
How do I hide panels based on the User who is logged in? Its for a school management system.
@MZX it would be easier to help if you specify the actual example of what do you mean by "some panels will be hidden from them", which panels/resources etc. Because the solution may be pretty individual depending on scenario: restrict panels? use policies? tenancy? etc
10 replies
In registration page, have dynamic steps for Wizard based of step's afterValidation
@Jigar D very elegantly solved, congrats!
With security risk, yes it's implied with the logic that you chose for this. Another approach would be to send invites personally for registration from that specific company domain. And more approaches exist, I'm sure.
7 replies