Filament

F

Filament

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

Join

Custom JS is not working in custom view page in RelationshipManager

So the case is this 1. We use video js using CDN What I did...

multiple dashboards

i've read in the docs how to create multiple dashboards, but anytime I remove Dashboard::class from my pages() method as instructed, the navigation item disappears, and the next page in in my app just basically becomes the default. I've tried different things to try and make the dashboard show up without being in the pages method, but I haven't been able to. I've gone and looked at the Dashboard base class in the Filament directory and can't glean from that how exactly I should be making this work. It's not entirely clear from the docs (or I'm dumb) how exactly you can go about creating multiple dashboards. ```php ->pages([ Dashboard::class,...

Using tabs not repeater for dynamic form

i have multiple database tables with following structure
 articles
 - id
 - author_id - created_at
...

How to increase SelectFilter's dropdown width?

Hi, does anyone know how to increase the width of the dropdown that appears while you have a SelectFilter open and are choosing an item? For example here I want the dropdown to expand and take up more width so that items are not spread across multiple lines
No description

Bulk Actions Directly in Dashboard Widgets

Hi Filament Community, Is it possible to add bulk actions directly to a dashboard widget without converting a resource into a widget? I tried creating a TableWidget for invoices with a "Pay Selected" button, but it first requires opening an actions menu, which complicates the UI. How can I make bulk actions appear immediately when invoices are selected? Or can you directly advise me on a way to convert a resource into the dashboard? Thanks for your help!...
No description

I have a custom entry (For Infolist). How to pass data to the view?

I tried this, but this didn't work. I am calling a JS function in the view which needs that data. ```php public function getViewData(): array { // Fetch the pointeau locations...

I'm seeking work as a full stack developer

Hello Everyone I'm seeking work as a full stack developer. If you have any work and planning new, kindly let me know. Here is my portfolio. ...

Column Order Number Error

Hi, I'm trying to use column_order for my relation manager. This is my code: Track Model...

Wizard Get $get select multiple value based on filed

I've a form wizard like this: ```php public static function form(Form $form): Form...

Image path is not saving in table column

Section::make("Images") ->collapsible() ->schema([ Repeater::make('images') ->relationship('images')...

fileupload signed url issue

FileUpload::make('image_url') ->disk('r2') ->directory('products') ->visibility('public') ->image()...

Table Repeater in modalContent

I'm having trouble persisting the data from my modal's table repeater after creating my resource. CreateCar. many-to-many relationship ``` public function getFormActions(): array { return [ ...parent::getFormActions(),...

ListView Entries As Widget

Hi folks, what is the best way to have list view entries as separate widgets? I've included an example below of what I mean, thanks in advance! Also, you guys are awesome for providing help here 🙂 I wouldn't have the patience to do it!...
Solution:
honestly, I didn't catch the idea.. Do you mean, something like that? https://filamentphp.com/docs/3.x/tables/layout#arranging-records-into-a-grid...
No description

Testing Relation Managers

I am trying to build a test suite for my application. I am trying to test the form() method on my relation manager as it is not being hit for coverage. I have been able to use this for being able to test the table works:...

Can't see image on browser after deploying app

Hello, I'm having a problem that after in uploaded my project to a server i can't see the images I've uploaded. I've already ran the storage:link command and and when i upload the image, it stores it in both storage files, but it seems it cant reach the folder i stored it in. When i inspect the image, it even shows the url as https://url.comstorage, instead of https://url.com/storage. Anyone has any idea of what could be causing this? Thanks in advance...

Filepond isn't initializing in the wizard on the edit pages

this issue still open until now, I already update filament to 3.2.115 and still same problem.

Custom rule based on another field - Good way or not ?

I'm implementing a custom rule that verify that two dates are in the same year. Custom Laravel Rule ```php...

Upgrade v3 - Livewire and Alpine not loading

I just upgraded to v3. The admin panel seems to load but the screen is blank. If I inspect, everything seems to be there. One of the wrapping divs for the entire page is set to opacity-0 with the x-bind:style set to give it opacity. This is what gave me the clue that Livewire and Alpine are not being loaded. Also, my Livewire and Alpine dev tools both say that nothing is detected. Any ideas on why Livewire and Alpine wouldn't be loading for my admin panel? I also tried creating a second admin panel (/admin2) and it does the same thing....
No description

Multi-Tenancy with 2 different databases

Hi! I am Rohan, I am trying to apply multi-tenancy with multiple DB. I have two databases one central_db and second education db. I have to show the resources for the tables present in the central_db, my main database is education DB. Now tenancy team will be schools table in central_db. Now users table is in education DB and I have set a resource on User Model. But when I am trying to render the user resource, Laravel says education.schools table is not there I have attached the file with the code. Can someone help me out in where am I going wrong or is this how it will be for this scenario. Thank you...