Jamie Cee
Live notifications
Im a little confused how notifications are working. So I've setup and installed pusher and echo etc.
This is my notification
I have a queue:listen going, I can see the BroadcastNotificationCreated event, I can see in my pusher dashboard, the channel message come through and tells me the format is filament etc. But no notification comes through while im on my admin panel. What am I missing?
5 replies
Get operation in custom component resource
I have a custom form component, but im wanting to access the current operation inside to have some conditional logic.
I know I can obtain other data such as $isDisabled() and $getHelperText() - but I cant seem to find any for getting operation?
2 replies
Method App\Http\Livewire\Twofa::getRenderHookScopes does not exist.
So I had a 2fa system setup and working, and wondering if a recent composer update has pulled some changes that is now causing this error. I cant find any reference to me calling getRenderHookScopes so not sure where its going wrong
7 replies
Tab Forms
I have a foreach loop to define tabs and include the form depending on the tab. Since it's based on locales, I want the states of the form inputs to change depending on the locale.
My issue is that each tab is still having the same state, not changing per tab. Not sure what im missing.
21 replies
State not updating
So I have this grid thats inside a tab component. When I switch component, it should update the input value. But the content is not currently changing.
If I dd($component->state); the field doesn't exist, but dd component does show the TextInput element
2 replies
Export download prompt
https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export
Unless im blind, is there a way to click export, then prompt the ability for the user to download and save to their device, rather than saving in storage? As im assuming this is gonna require a separate link or button to doiwnload the exported file?...
27 replies
Select Option for userMenuItems
Is there a way to define a select option dropdown in the MenuItem of the userMenuItems, either clicking and opening a modal with a dropdown, or a dropdown directly?
Even a bit of guidance on what I'd need to build something custom for this?
It will only be changing a session state, so nothing complex
5 replies
Implements on User model
Question, not sure if it's been raised before.
I have a custom in-house authentication package, which means I have a User that extends authenticatable in the package. Then in my project level, my User model extends the package model, and I define the bind inside the AppServiceProvider.
The issue I have is the implements for: FilamentUser, HasName. If I add these to the project level, it struggles to find the functions in the project model, and only seems to work on the User model that is extending authenticatable...
is there a work around for this?
2 replies
Route Middleware resource
Just want to know if theres an easier way to do this before I create a separate page for account information.
I have a middleware on my user resource:
However, I want a user to be able to edit their own account regardless of this middleware.
7 replies
Updating state after filtering
Cant find out if it's currently possible, where after filtering, I update the state and tooltip of values.
When I filter a different language, I want to update the fields with the translations, and add a tooltip with the originals
8 replies
select input for actions
I am not sure if this is in the documentation as I cant find any reference...
I have my list table, and they each have the view, edit and delete action. However, I then want to create a 4th action that is a dropdown populated with language locales.
I want the option to open the dropdown and select a language locale then I can do the custom action to open the edit screen but with the content of that locale
5 replies
requiredWithout validation
I am trying to run a requiredWithout validation rule, I want contact number to be required if email is null. The issue I am having is that contact number is inside the schema of a fieldset that is from the profile model. Where as email is on user directly.
This is my current attempt. But getting this error: An attempt was made to evaluate a closure for [Filament\Forms\Components\TextInput], but [$form] was unresolvable.
If I just have the requiredWithout('email') the validation is looking for data.profile.email which is incorrect as email isn't in profile, and if I call user.email its then searching data.profile.user.email
7 replies