Jamie Cee
Jamie Cee
FFilament
Created by Jamie Cee on 4/24/2025 in #❓┊help
Tailwind setup not entirely working
So the project route has this layout
import preset from './vendor/filament/support/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./resources/views/pages/**/*.blade.php',
'./resources/views/livewire/**/*.blade.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
}
import preset from './vendor/filament/support/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./resources/views/pages/**/*.blade.php',
'./resources/views/livewire/**/*.blade.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
}
I see there is also a tailwind.config.js located inside resources/css/filament/admin after I follow the steps for custom theme styling. However, tailwind properties aren't working, such as sm:justify-center etc, and im so confused why
6 replies
FFilament
Created by Jamie Cee on 4/14/2025 in #❓┊help
User Menu to sidebar
Is it possible to move the user menu to the bottom of the sidebar without overriding the view blade? So sticky position to the sidebar navigation, and on show, so settings and logout buttons directly, without clicking into the user menu. Or would this be a case of disabling user menu then creating custom navigation actions?
18 replies
FFilament
Created by Jamie Cee on 4/11/2025 in #❓┊help
Guidance on custom tab blade views
So Im following the documentation for the Tab clade components, but still getting a few issues. So my blade for my custom page looks like this
<div x-data="{ tab: 'tab1', tabLoaded: { tab1: false, tab2: false } }">
<x-filament::tabs>
<x-filament::tabs.item :active="$activeTab === 'tab1'" wire:click="$set('activeTab', 'tab1')">
My Schedule
</x-filament::tabs.item>
<x-filament::tabs.item :active="$activeTab === 'tab2'" wire:click="$set('activeTab', 'tab2')">
Team Schedule
</x-filament::tabs.item>

{{-- Other tabs --}}
</x-filament::tabs>

<div class="mt-2">
<!-- Tab 1 -->
<div x-ref="tab1" x-show="tab === 'tab1'">
@livewire(\App\Filament\Widgets\WorkWeekScheduleWidget::class)
</div>

<!-- Tab 2 -->
<div x-ref="tab2" x-show="tab === 'tab2'">
@livewire(\App\Filament\Widgets\WorkWeekScheduleWidgetTeam::class)
</div>
</div>
</div>
<div x-data="{ tab: 'tab1', tabLoaded: { tab1: false, tab2: false } }">
<x-filament::tabs>
<x-filament::tabs.item :active="$activeTab === 'tab1'" wire:click="$set('activeTab', 'tab1')">
My Schedule
</x-filament::tabs.item>
<x-filament::tabs.item :active="$activeTab === 'tab2'" wire:click="$set('activeTab', 'tab2')">
Team Schedule
</x-filament::tabs.item>

{{-- Other tabs --}}
</x-filament::tabs>

<div class="mt-2">
<!-- Tab 1 -->
<div x-ref="tab1" x-show="tab === 'tab1'">
@livewire(\App\Filament\Widgets\WorkWeekScheduleWidget::class)
</div>

<!-- Tab 2 -->
<div x-ref="tab2" x-show="tab === 'tab2'">
@livewire(\App\Filament\Widgets\WorkWeekScheduleWidgetTeam::class)
</div>
</div>
</div>
5 replies
FFilament
Created by Jamie Cee on 4/9/2025 in #❓┊help
Icons in a blade
In a widget I pass some html into my calendar, and I want to use heroicons that comes out the box, but currently I cant get the icon to show...
($day->work_type === 'remote' ? '<x-filament::icon icon="heroicon-o-home" class="h-5 w-5 text-gray-500 dark:text-gray-400" />' : '') .
($day->work_type === 'office' ? '<x-filament::icon icon="heroicon-o-office-building" class="h-5 w-5 text-gray-500 dark:text-gray-400" />' : '') .
($day->work_type === 'remote' ? '<x-filament::icon icon="heroicon-o-home" class="h-5 w-5 text-gray-500 dark:text-gray-400" />' : '') .
($day->work_type === 'office' ? '<x-filament::icon icon="heroicon-o-office-building" class="h-5 w-5 text-gray-500 dark:text-gray-400" />' : '') .
6 replies
FFilament
Created by Jamie Cee on 4/8/2025 in #❓┊help
Calendar plugin as a custom page rather than a widget
I've been looking into using this plugin: https://filamentphp.com/plugins/guava-calendar But rather than as a widget, I want it for the full page, but just cant get it to work at all. I've tried making a custom page, setting the view to the contents of the calendar view (without the widget tags). But just giving error after error
8 replies
FFilament
Created by Jamie Cee on 3/13/2025 in #❓┊help
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
10 replies
FFilament
Created by Jamie Cee on 3/5/2025 in #❓┊help
stats layout on a dashboard
No description
2 replies
FFilament
Created by Jamie Cee on 3/3/2025 in #❓┊help
Why is my content so wide
No description
19 replies
FFilament
Created by Jamie Cee on 2/19/2025 in #❓┊help
Calling a custom page from a function
I am extending the default passport oauth2 flow and want to customize the view, in which I want to stick with filaments design. So I create a page class, and then in my function, I need to know how to return the page etc
public function toResponse($request)
{
return (new OAuthAuthorizationPage($this->parameters))->render();
}
public function toResponse($request)
{
return (new OAuthAuthorizationPage($this->parameters))->render();
}
I have this currently, and it goes to the blade file, but doesn't detect any of my variables which I set in the mount
public function mount(Request $request)
{
dd($request);
$this->clientName = $request->client->name ?? 'Unknown App';
$this->scopes = $request->scopes ?? [];
$this->state = $request->state;
$this->clientId = $request->client->getKey();
$this->authToken = $request->authToken;
}
public function mount(Request $request)
{
dd($request);
$this->clientName = $request->client->name ?? 'Unknown App';
$this->scopes = $request->scopes ?? [];
$this->state = $request->state;
$this->clientId = $request->client->getKey();
$this->authToken = $request->authToken;
}
27 replies
FFilament
Created by Jamie Cee on 2/10/2025 in #❓┊help
File Upload within a custom page is null
So My page resource
<x-filament-panels::form wire:submit="submit">
{{ $this->form }}
<div>
<x-filament::button type="submit" size="sm" wire:loading.attr="disabled" wire:target="submit"
wire:loading.class="opacity-50 cursor-not-allowed">
Verify
</x-filament::button>
</div>
</x-filament-panels::form>
<x-filament-panels::form wire:submit="submit">
{{ $this->form }}
<div>
<x-filament::button type="submit" size="sm" wire:loading.attr="disabled" wire:target="submit"
wire:loading.class="opacity-50 cursor-not-allowed">
Verify
</x-filament::button>
</div>
</x-filament-panels::form>
And my form im using the spatie media library file upload component
/**
* Form Schema
*
* @param Form $form
* @return Form
*/
public function form(Form $form): Form
{
return $form->schema([
TextInput::make('name'),
SpatieMediaLibraryFileUpload::make('media')
])
->statePath('data');
}

public function submit()
{
$data = $this->form->getState();
dd($data);
}
/**
* Form Schema
*
* @param Form $form
* @return Form
*/
public function form(Form $form): Form
{
return $form->schema([
TextInput::make('name'),
SpatieMediaLibraryFileUpload::make('media')
])
->statePath('data');
}

public function submit()
{
$data = $this->form->getState();
dd($data);
}
But in my dd() I only see name, there is nothing regarding the file upload part. Is there something im missing that I cant see in the documentation?
15 replies
FFilament
Created by Jamie Cee on 1/22/2025 in #❓┊help
Code to run after Related Page update
So I have resource sub-navigation and a relation page setup, however, I cant figure out how to run some code after update, it doesn't appear to run using functions such as handleRecordUpdate etc? Is there something obvious im missing?
6 replies
FFilament
Created by Jamie Cee on 11/19/2024 in #❓┊help
table layout styling
No description
33 replies
FFilament
Created by Jamie Cee on 11/18/2024 in #❓┊help
illegal offset type in tests
No description
27 replies
FFilament
Created by Jamie Cee on 11/11/2024 in #❓┊help
spotlight ManageRelatedRecords
No description
3 replies
FFilament
Created by Jamie Cee on 11/8/2024 in #❓┊help
slow performance and 500 errors with large data
I've looked over older questions and just want to clarify if this is something to be optimized in v4? In my loadtest I have 20,000 users, and it returns a 500 error. And if I downset to around 15,000 users, the page will load but runs extremely slow. Is there anything available to optimize that I may be missing?
56 replies
FFilament
Created by Jamie Cee on 11/7/2024 in #❓┊help
Unable to interact with last record of table, or the pagination when using large amounts of data.
I say "large" but current only have 69 records in the table. I can interact with the actions on every other record, except the last record. And I am unable to change the value of 'perPage' either. Any ideas?
6 replies
FFilament
Created by Jamie Cee on 11/5/2024 in #❓┊help
action group icon
Is there anything out the box to change the icon from an action group, (a chevron instead of the dots). Before I go down the overriding of the views? I cant see anything in the docs regarding this
2 replies
FFilament
Created by Jamie Cee on 10/16/2024 in #❓┊help
Policies for ManageRelatedRecords only
So in my Model, I have a class that extends ManageRelatedRecords, and is for managing users under that model. I only want to allow the attaching and detaching under that Model, but still hiding access to users as a whole navigation, which I cant do, even when in the Manager class, I define the canViewAny method
3 replies
FFilament
Created by Jamie Cee on 10/16/2024 in #❓┊help
soft delete modify query using
When a resource table is setup to use modifyQueryUsing(). how can I make it still filter with the trashed() functionality from the filter section?
2 replies
FFilament
Created by Jamie Cee on 10/16/2024 in #❓┊help
MorphToMany Select Relationship
Im getting completely frazzled with MorphToMany setup in a select instance. I have a User that Morphs to Many Organisation and Product. Im trying to merge the items into a single Select, and I have it working, except when trying to edit a user, I cant get it to show the already existing records as already selected values. I found this function
->loadStateFromRelationshipsUsing(function (User $record) {
// Retrieve the organisation IDs managed by the user
$organisationIds = $record->morphedOrganisations()->pluck(
(new Organisation())->getQualifiedKeyName()
)->toArray();

// Retrieve the product IDs managed by the user
$productIds = $record->morphedProducts()->pluck(
(new Product())->getQualifiedKeyName()
)->toArray();

dd(array_merge($organisationIds, $productIds));

// Combine both arrays of IDs
return array_merge($organisationIds, $productIds);
})
->loadStateFromRelationshipsUsing(function (User $record) {
// Retrieve the organisation IDs managed by the user
$organisationIds = $record->morphedOrganisations()->pluck(
(new Organisation())->getQualifiedKeyName()
)->toArray();

// Retrieve the product IDs managed by the user
$productIds = $record->morphedProducts()->pluck(
(new Product())->getQualifiedKeyName()
)->toArray();

dd(array_merge($organisationIds, $productIds));

// Combine both arrays of IDs
return array_merge($organisationIds, $productIds);
})
I can get the array of ids, but im not sure what im missing at displaying them as the selected values
5 replies