Filament

F

Filament

Filament is a collection of beautiful full-stack components for Laravel.You can get help using it on our Discord.

Join

script in modalContent(view('qr-scanner.php')) not working

Hello I am trying to integrate this package into filament action modal https://github.com/mebjas/html5-qrcode ``` Actions\Action::make('openModal')...
Solution:
add to the appserviceprovider ```php public function boot(): void {...

Date + Time Steppers / Meridiem

I'm cannot find a happy solution between using the native HTML5 datetime vs Filament's datetime implementation. - I'm in U.S. and 12 hour clock (with meridien) doesn't seem to be possible with ->native(false) - But when using the native HTML5 datetime steppers don't work: ->minutesStep(5) Anybody else facing these annoyances and find solutions? ...

Is there a way to restyle <x-filament::button> and other filament components?

Hello! I want to restyle all of the filament components. How would I go about doing this? Should I publish the views?

Breadcrumps

I don't know how to solve this. On the Event View page I don't see the right breadcrumbs. It should be Events > Name of the event > View. Anyone with a golden tip? 🙂...
No description

Sidebar opens automatically on dashboard load

Description: When accessing the dashboard on a mobile device, the sidebar opens automatically upon page load Expected behavior: On mobile devices, the sidebar should remain closed by default when loading the dashboard. It should only open when explicitly triggered by the user (e.g., through a menu button tap)....
No description

Create images for multi page pdf spatie-laravel-media-library-plugin

Hi there, I am using the spatie-laravel-media-library-plugin and its media conversions. I would like to create an image for each pdf page, but can't find a way to do so. I checked the pdf-to-image package, but because my uploaded pdf is in the livewire-tmp folder, I can't access it via $pdf = new \Spatie\PdfToImage\Pdf($pathToPdf); ...

Livewire encountered corrupt data - Notifications

I've got an unexplained issue. When I try and put markdown in a Notification Body, as per docs, it throws a livewire issue: Livewire encountered corrupt data when trying to hydrate a component. Ensure that the [name, id, data] of the Livewire component wasn't tampered with between requests. I've stripped everything out in this example using just wom view page header actions:...

Duplicate notifications from table action on page load

I have a UserOrderResource, where I have added a table action that navigates to the GroupOrderResource record for each UserOrder record: ```php Tables\Actions\Action::make('group_order') ->url(function (UserOrder $record): ?string { // Use the already eager-loaded groupOrder if it's available...

Auth session admin and user

There is a Laravel project. I have 2 authorizations, the usual one for the user and the filament admin. One user table is used for authorization. That is, if I log in under the admin data in the admin panel, then the script also authorizes the regular user. And if you exit the admin panel, then the user also leaves the usual one. That is, you need to somehow separate the admin and user session. I tried to change it through config auth and guard, but it didn't work out

Using the recommended Issue Starter to create a bug report

When creating a bug report on Github, there is the following warning: ``` Reproduction repository (issue will be closed if this is not valid) The URL of a public GitHub repository which reproduces the problem. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. This allows us to fix the problem much quicker. This issue will be automatically closed and not reviewed if this is missing. Please make sure to format the URL starting with https://github.com - only repositories hosted on GitHub are accepted. Need a headstart? We have a template Filament project for you....

Chart Filters - Date picker

I have a chart and am looking to put a date picker onto it so the user can select their own timeframes instead of the dropdown. Has anyone made something like this? How would you go creating this, I assume a custom component that wraps around the Chart widget....

Group Options in record Select in Relation Manager

Hello, I'm trying to achieve to group options in Select record input in AttachAction in Relation Manager, but I have an error :
Method Illuminate\Support\Collection::getQuery does not exist.
Method Illuminate\Support\Collection::getQuery does not exist.
` ```php...

Custom form field, how to change the state from x-init?

I have following component and want to change the state from inside the function? ``` <x-dynamic-component :component="$getFieldWrapperView()"...

PanelsRenderHook not found

I am trying to customize body start of filament so i used panal render hook here is my code ``` use Filament\View\PanelsRenderHook; ...
Solution:
run composer update

how to stop table auto refresh when public properties updated in live wire component

i have a filament page and it has multiple public properties along with a table . but when i update these public property using ' wire:model.change ' then the table becomes auto refreshed why and how to fix this

include a summary in export action

I have an export with currency values in it. I want a summary cell on the bottom with the total of all currency values. Is there a way to do this with the filament exporter. public static function getColumns(): array { ...

Remove Sidebar

How i can remove sidebar for user if don't have super_admin role?

Custom Modal Issue

I have been trying this for hours but not working, i want to create a livewire custom modal with filament form , i followed the docs well , but instead i got this error
Filament\Resources\Pages\ListRecords::form(): Argument #1 ($form) must be of type Filament\Forms\Form, Filament\Infolists\Infolist given, called in /Users/sadiqgoni/hotel-management/vendor/filament/infolists/src/Concerns/InteractsWithInfolists.php on line 56
Filament\Resources\Pages\ListRecords::form(): Argument #1 ($form) must be of type Filament\Forms\Form, Filament\Infolists\Infolist given, called in /Users/sadiqgoni/hotel-management/vendor/filament/infolists/src/Concerns/InteractsWithInfolists.php on line 56
and i have not put any infolist in my code This is my OrderResource ``` ->actions([ Tables\Actions\EditAction::make(), Tables\Actions\ViewAction::make(),...

autorefresh / liveserver

I have a table CRUD system and a table widget from another resource on the same page. How can I make the table widget update in real-time?