Scott
Show a "preview" within an action modal
Perhaps using it in conjunction with? https://filamentphp.com/docs/3.x/actions/modals#custom-modal-content
7 replies
Add a notice to the top of a table page
@toeknee_iom Thank you, hooks look like the solution. However, the documentation isn't clear where in a service provider the render hooks go. This is a common theme I'm finding wiht the docs, where it doesn't give an example in context :/
28 replies
How do you get the current tenant id?
Had to go digging in the filament vendor package... Basically, you add an event listener to the setTenant function.
php artisan make:listener UpdateLatestTeamId --event=TenantSet
Then in your new file (e.g. app/Listeners/UpdateLatestTeamId.php
) you could put
And then you need to register your new listener in app/Providers/EventServiceProvider.php
like so
5 replies
How do you get the current tenant id?
The docs talk about getting the latest tenant: https://filamentphp.com/docs/3.x/panels/tenancy#setting-the-default-tenant
I've added a migration to add the latest_tenant_id column, but how do we set this value?
5 replies