Create Custom Form Field (Image Selector)
Hi
i am trying to create a custom form field which let so select for a preloaded image and also upload your own image and this is how i want the input to work
```php...
Artisan Route:Cache crashes the screen.
Hello everyone. I need to run the command "Artisan::call('route:clear')" sporadically when updating a name of the sub-sites within the site. But every time I run this command it freezes the screen. I've tried putting it in the Observer, in the using and in the after of the EditAction and they all give the same result. On this site I can't run it as a JOB because it's disabled in the cron on the hosting. Is there anything I can do? Thanks

Disabling Submit Button During Network Requests
Hello - I am experiencing an issue where a "Submit" button is disabled but it does not show as disabled. For example, on a Create resource page. I have
->reactive()
fields on the form. If one of those is modified and the network request is pending, the Submit button does not display a loading indicator or indicate that it is disabled in any way. But if the submit button is clicked while the network request is pending, nothing happens. This also happens in custom forms and modals.
Is there a way to show the user that the Submit button is disabled during a pending network request? It create a bad experience for the user when they click Submit without being told that the button is actually disabled. Thank you...Adding detail pages to custom page
Hi,
I've built a custom page which shows up on the main dashboard nav, not really associated to any resource.
On that page, based on some interactions, you will get a listing of some models. I would like to add detail pages to those models. Is there some kind of standard way to do this?
...
Do relationship columns need to be fillable?
I'm not a fan of adding relationship columns e.g. user_id, as fillable attributes on the Model, but does filament require them for relationship fields to work?
Compound key validation at Form's DatePicker
Given this migration:
`Schema::table('incomes', function (Blueprint $table): void {
$table->date('emission_date')
->nullable(false)...
issues when installing the panel
What I am trying to do: I am trying to install the admin panel
What I did:
i ran: composer require filament/filament
php artisan filament:install --panels...
Solution:
Possibly caused by the 1 in the PanelProvider don't think classes support numbers
Setting team_id in session when authenticating
Hi all, filament newbie here. I'm looking into using filament for a new project, using Spatie laravel-permission via the "Spatie Roles Permissions" filament plugin. I'm still figuring it out and whether it's a good fit for what I need (I think it will be). But I'm hitting some (basic) walls.
As per the following:
https://spatie.be/docs/laravel-permission/v6/basic-usage/teams-permissions#content-working-with-teams-permissions
...
Saving relationships
I have a relationship set in my User form for managing roles, however I want to add some logic for role checking to make it so admins cant modify super admin roles and other roles cant modify admin and super admin roles etc
Solution:
I would suggest you use a rule instead and prevent it?
Google address autocomplete with repeater
Hello all! I'm using the google address autocomplete but I'm having an issue when I place it inside a repeater, for some reason all the inputs are related, meaning... if I have 3 of those google autocomplete and I type an address in one of them, all the others copy the same info.
Solution:
This was an issue with the version, this bug was fixed with version
1.0.7

Help Needed: Images Not Displaying After Hosting
I'm having trouble displaying images that should appear in my project after hosting it. The images aren't showing up even though they work fine locally. Has anyone experienced this issue and can suggest how to fix it?
Tables\Columns\ImageColumn::make('fuel_receipt')
->label('Struk BBM')
->circular()...

How can i override a resource of a package ?
I created a resource that inherit from the package resource but nothing changed.
Exporting by command line
Hi! Is it possible to make a export command with the Filament Excel exporter through the terminal? I can't really find anything about it.
Laravel 12, Livewire starter-kit, Filament PHP
Good day all!
I've spent ages working on a system whereby I'm using Filament PHP in Livewire pages and to great effect.
However, has anyone yet used the L12, LSK and successfully been able to add in a form/table (just a table is enough), without seeing the screen and table skewered and broken?...
Solution:
Not really possible at the moment. Filament v3 is locked to tailwind v3. The starter kit uses tailwind v4.
Is it possible to pass the parent record to the gate of a relation manager?
I have a
Work Orders
resource and on the edit page of each is a relation manager for Work Order Notes
. I have policies for both models.
I only want to allow a work order note to be created on work orders that the logged in user owns. The problem is that Filament checks a create
method on the WorkOrderNotePolicy
that doesn't pass in anything other than the user. Eg.
```php...Solution:
This is what I ended up doing on the relation manager. There are several
canAction
methods on the relation manager and I override the one's I need. Not sure if this is the best way to do this though but it works.
```php
protected function canCreate(): bool
{...Conditional actions on table columns
Hi all!
I have a table, along the Y axis (rows) is a list of locations, and each column along the X axis is information from different relations to that Location (complianceA.name, complianceB.name).
I want the ability when clicking on the column, to either open an edit modal for the relation if it exists, and to open a create modal for the relation if it does not exist....
Open relation manager on table action
Is there a way to open a relationship management modal directly in the filament table? Without having to click edit the record and click add relationship.
Repeater custom create function?
I can only seem to find docs on how to
mutateRelationshipDataBeforeCreateUsing
, but not a way to do the actual insert into the database ourselves, is this possible?