- 199
- 633 752
Filament Daily
Lithuania
เข้าร่วมเมื่อ 20 ส.ค. 2023
Quick tips and tricks about the Laravel Filament system.
Livewire File Manager in Filament: Demo Project
Introducing a new livewire-filemanager package that can be used quite easily in Filament.
Source: github.com/livewire-filemanager/filemanager
More Filament examples on our website: filamentexamples.com
Source: github.com/livewire-filemanager/filemanager
More Filament examples on our website: filamentexamples.com
มุมมอง: 84
วีดีโอ
Filament: Change Delete Modal Text Globally with Laravel Translations
มุมมอง 4874 ชั่วโมงที่ผ่านมา
An example of how to customize a string in Filament by using the underlying Laravel feature of translations. Filament Docs on Publishing Translations: filamentphp.com/docs/3.x/panels/installation#publishing-translations Laravel Docs on Localization: laravel.com/docs/11.x/localization More Filament examples on our website: filamentexamples.com
Filament: Multiple Many-to-Many Checkboxes in One Form
มุมมอง 85616 ชั่วโมงที่ผ่านมา
An example of editing meals for the group of kids. Full source: filamentexamples.com/project/many-to-many-checkbox-list-in-fieldset
Filament Plugin: Date Range Filter Picker
มุมมอง 1K21 ชั่วโมงที่ผ่านมา
A quick demo of a very useful Filament plugin which is actually a wrapper of an old jQuery library. Plugin homepage: filamentphp.com/plugins/malzariey-daterangepicker-filter Original jQuery DateRangePicker: www.daterangepicker.com/ More Filament examples on our website: filamentexamples.com
Filament Activity Log: Override Page Render Method
มุมมอง 1.3K14 วันที่ผ่านมา
You can add custom behavior before rendering the page, logging the activity is a good typical example. Links mentioned in the video: - Text version of the tutorial: filamentexamples.com/tutorial/overriding-page-render-method-to-add-custom-logic - Package spatie/laravel-activitylog: spatie.be/docs/laravel-activitylog/v4/introduction - Filament plugin rmsramos/activitylog: filamentphp.com/plugins...
Filament Phone Input Plugin: Quick Demo
มุมมอง 1K14 วันที่ผ่านมา
Demonstration of the default Filament phone validation versus using a specific plugin. Link to plugin: filamentphp.com/plugins/ysfkaya-phone-input More Filament examples on our website: filamentexamples.com
Filament DefaultSort by More than One Column?
มุมมอง 69321 วันที่ผ่านมา
This "trick" is missing from the official docs. More Filament examples on our website: filamentexamples.com
Filament Table: Copy Column Text to Clipboard
มุมมอง 81821 วันที่ผ่านมา
A quick demo of a core Filament feature of `copyable()`. Docs: filamentphp.com/docs/3.x/tables/columns/text#allowing-the-text-to-be-copied-to-the-clipboard More Filament examples on our website: filamentexamples.com
Filament Page with Form to Download CSV
มุมมอง 1.1K21 วันที่ผ่านมา
A quick example of a page with the form to download the Excel file. Full source code: filamentexamples.com/project/custom-page-to-download-excel-report
Filament Chart/Stats Widgets on View/Edit Page of Resource
มุมมอง 1.4K28 วันที่ผ่านมา
You can have charts and other widgets not only on the dashboard. Let me show you. Text version of this tutorial: filamentexamples.com/tutorial/chart-on-view-page-based-on-current-record More Filament examples on our website: filamentexamples.com
Filament Login Form: More Validation Rules
มุมมอง 1.2K28 วันที่ผ่านมา
A quick example of how you can check if the user is suspended or banned. Text version of this tutorial: filamentexamples.com/tutorial/login-extra-validation More Filament examples on our website: filamentexamples.com
Filament Repeating Code: 2 Refactoring Examples
มุมมอง 1.7Kหลายเดือนก่อน
Sometimes we need to perform the same calculations/operation from multiple places. How to avoid repetition and duplicate DB calls? Links to the original tutorials: - Filament Resource: Repeating Code in Static Function to Avoid Duplication filamentexamples.com/tutorial/repeating-live-input-calculations-on-multiple-fields-preventing-repetitive-code - Avoid Duplicate Queries in Filament Closures ...
Filament Demo: Dependent Dropdowns and Import CSV
มุมมอง 1.7Kหลายเดือนก่อน
A quick example project I decided to show on TH-cam. Docs on Import Action: filamentphp.com/docs/3.x/actions/prebuilt-actions/import More Filament examples on our website: filamentexamples.com
DB Transactions in Filament: Practical Example
มุมมอง 1.1Kหลายเดือนก่อน
You can easily enable database transactions in Filament, but it's hard to understand WHEN should you do it. Let me show you the example. Docs: filamentphp.com/docs/3.x/panels/configuration#enabling-database-transactions More Filament examples on our website: filamentexamples.com
Raw SQL Queries in Filament: 2 Practical Examples
มุมมอง 1.4Kหลายเดือนก่อน
How to use raw SQL queries in Tables or Charts of Filament? Let me show you. Full premium example: filamentexamples.com/project/using-raw-sql-queries-in-filament-tables-or-widgets Filament docs on Charts: filamentphp.com/docs/3.x/widgets/charts
Filament Plugin: Icon Select Column with Enums
มุมมอง 1Kหลายเดือนก่อน
Filament Plugin: Icon Select Column with Enums
Filament: Save Only Specific Section of the Big Form
มุมมอง 1.2Kหลายเดือนก่อน
Filament: Save Only Specific Section of the Big Form
Filament Cards Plugin: Create a Page Containing Cards
มุมมอง 2K2 หลายเดือนก่อน
Filament Cards Plugin: Create a Page Containing Cards
Filament Table Column: Click to Show Details in Modal
มุมมอง 1.9K2 หลายเดือนก่อน
Filament Table Column: Click to Show Details in Modal
Filament: Same Login Form for Multiple Panels
มุมมอง 1.7K2 หลายเดือนก่อน
Filament: Same Login Form for Multiple Panels
Filament Table: Show Restore Action Only with Trashed Filter
มุมมอง 7132 หลายเดือนก่อน
Filament Table: Show Restore Action Only with Trashed Filter
Filament: Log Table Search Queries (+ Log Viewer)
มุมมอง 9992 หลายเดือนก่อน
Filament: Log Table Search Queries ( Log Viewer)
Filament: Add Button on Top of Sidebar for "Quick Action" Shortcut
มุมมอง 1.4K2 หลายเดือนก่อน
Filament: Add Button on Top of Sidebar for "Quick Action" Shortcut
Filament: Auto-Suggest Form Field Value with AI (OpenAI Example)
มุมมอง 1.5K2 หลายเดือนก่อน
Filament: Auto-Suggest Form Field Value with AI (OpenAI Example)
Filament: "Add New" Link Directly in Navigation Sidebar
มุมมอง 1.5K2 หลายเดือนก่อน
Filament: "Add New" Link Directly in Navigation Sidebar
Black Friday 2024: 50% Off Filament Examples
มุมมอง 9302 หลายเดือนก่อน
Black Friday 2024: 50% Off Filament Examples
Filament Plugin: Relation Manager as Table Modal
มุมมอง 2.2K2 หลายเดือนก่อน
Filament Plugin: Relation Manager as Table Modal
Filament: See All Render Hooks Visually (Cheat Sheet)
มุมมอง 1.7K2 หลายเดือนก่อน
Filament: See All Render Hooks Visually (Cheat Sheet)
Filament: Table and Form on ONE Page like WordPress?
มุมมอง 3K2 หลายเดือนก่อน
Filament: Table and Form on ONE Page like WordPress?
Filament: DON'T Publish Blade Views. Here's Why.
มุมมอง 1.7K2 หลายเดือนก่อน
Filament: DON'T Publish Blade Views. Here's Why.
thanks very weird problem
Perfect video. I was searching for "Dashboard" key actually and the tutorial in website really helped about it. Thanks.
please how do I remove the new Course button?
Can you show how to override filament's default authentication by using another existing table by using "email" and "userPassword" fields
Sure bro? 😏
Thanks @Povilas for the review
In my opinion, this feature should be incorporated at Filament core ❤
I am using Laravel Filament v3 and encountered an issue when generating a resource. I generated the resource using the following command: php artisan make:filament-resource Player --generate The resource generation completed successfully, but I am experiencing strange behavior in the table view of the generated resource. Specifically: When I perform a search, apply a filter, change the number of items displayed, or navigate to another page in the table, a black screen modal immediately appears. To view the updated data (e.g., navigating to page 2), I have to manually reload the page. After reloading, the table correctly shows the intended data (e.g., page 2). I didn’t modify anything from the default generated resource Environment Details: Laravel version: 11.39 Filament version: v3.2.57 Livewire version: 3.5 PHP version: 8.2 Browser: Chrome
in a laravel debugbar, it says app.filament.resources.equipment-resource.pages.list-equipment #i5rSNxaCHnOUfVUvD0mq...ages.list-equipment #3tYoJsO5BJkZpIzYs5B3 array:4 [ "data" => array:38 [ "isTableReordering" => false "tableFilters" => array:10 [ "po_number" => array:1 [ "value" => "FGF" ] "brand_name" => array:1 [ "value" => null ] "Category" => array:1 [ "value" => null ] "Facility" => array:1 [ "value" => null ] "person_liable" => array:1 [ "value" => null ] "unit_no" => array:1 [ "value" => null ] "status" => array:1 [ "value" => null ] "date_acquired" => array:1 [ "value" => null ] "supplier" => array:1 [ "value" => null ] "description" => array:1 [ "value" => null ] ] "tableGrouping" => null "tableGroupingDirection" => null "tableSearch" => "" "tableSortColumn" => null "tableSortDirection" => null "activeTab" => "0" "mountedActions" => [] "mountedActionsArguments" => [] "mountedActionsData" => [] "defaultAction" => null "defaultActionArguments" => null "componentFileAttachments" => [] "mountedFormComponentActions" => [] "mountedFormComponentActionsArguments" => [] "mountedFormComponentActionsData" => [] "mountedFormComponentActionsComponents" => [] "mountedInfolistActions" => [] "mountedInfolistActionsData" => [] "mountedInfolistActionsComponent" => null "mountedInfolistActionsInfolist" => null "isTableLoaded" => false "tableRecordsPerPage" => 10 "tableColumnSearches" => [] "toggledTableColumns" => array:18 [ "po_number" => true "unit_no" => true "brand_name" => true "description" => true "facility" => array:1 [ "name" => true ] "category" => array:1 [ "description" => true ] "status" => true "date_acquired" => false "supplier" => false "amount" => false "estimated_life" => false "item_no" => false "property_no" => true "control_no" => true "serial_no" => true "person_liable" => false "remarks" => true "created_at" => false ] "mountedTableActions" => [] "mountedTableActionsData" => [] "mountedTableActionsArguments" => [] "mountedTableActionRecord" => null "defaultTableAction" => null "defaultTableActionArguments" => null "defaultTableActionRecord" => null "selectedTableRecords" => [] "mountedTableBulkAction" => null "mountedTableBulkActionData" => [] "tableDeferredFilters" => null "paginators" => array:1 [ "page" => 1 ] ] "name" => "app.filament.resources.equipment-resource.pages.list-equipment" "component" => "App\Filament\Resources\EquipmentResource\Pages\ListEquipment" "id" => "3tYoJsO5BJkZpIzYs5B3"
I just copied the issue description in github ....
in the Role Models, should i make ADMIN for Role::ADMIN? class Role extends Model { const ADMIN = 1; }
Thank you so much! This information is incredibly helpful!
If you have time, try using that same grid layout in a tab but not loaded on the first load, use Filepond in a second tab. Filepond classes are not loaded correctly. I think it's an async alpine problem.
Excellent! very usefull
Great video! Thanks to this video, I noticed that in a project I needed to add the fill form in table action.
i had a problem with fileupload in custom page, it wont automatically storing the files, instead it just stuck in tmp file, while the save method are saving using array which for files are kinda tricky, are there a way out for it ?
I use queue database but how make constumize notifications like if the email being queue it show "being process" And it will only show sent if the job is successfully done and show error message if not succeed
why filament cant upload a a file before register a user ?
Thank you so much for this video! It was incredibly helpful and informative. I learned a lot and appreciate the time you took to share your knowledge. Keep up the great work
Exactly what i neeed 🙂😂
Just override the form and add a new Custom Validation Rule
Thank you for this video. I just wanted to mention that the observer should be registered within the model like this: #[ObservedBy([TaskObserver::class])] class Task extends Model
I’ve always puzzled over the icon. Like this tutorial many use the paste icon, I tend to favour the copy icon
thank you very much 🥰
Parabéns 👏🏻 👏🏻 👏🏻
Congrats!! 🚀🚀🚀
Very nice to see you explaining how the parent render works, getting that extra info is super.
any way to split permissions into tabs? Now there is only one for resources but what if I want to split permissions based on the navigation groups I have? when you have a lot of resources I don't think it's pleasant for the user to scroll down a lot looking for permissions, right? any advice? ty master!
Just today I was wondering how to change the copyable state. Thanks for this Povilas!
This plugin displays the wrong country's flags with me. Has anyone faced this problem?
thanks
As you said, it would be nice to have a function to format it human readable..
Lol, it's such a coincidence! I was just looking for information on phone formatting a few days ago, and now your video comes out. Thanks a lot for the video!
Can you make a video on how to create a Filament plugin ?
I think it's pretty clear in the docs: filamentphp.com/docs/3.x/panels/plugins
Okay If I click that deleted record it will goes into Empty not found page. How to prevent this.?
Allah bless you, there is a helper function on that plugin from the laravel phone package called "phone()" , then you can the format function or whatever.
mmmm, why not tabs?
In the following videos to that one, I shared different approaches: Tabs, Wizard, and more. Please search the channel.
This could have still been achieved easily with Filament filters and Export Action
That's if you have a TABLE. But not if you need a separate page specifically for Reports.
This can also be done on the listing page as follows: protected function applyDefaultSortingToTableQuery(Builder $query): Builder { return $query ->orderBy('floor', 'asc') ->orderBy('room_number', 'asc') } This also works.
You can do this to add an icon: TextColumn::make('email') ->icon('heroicon-m-envelope') ->iconPosition(IconPosition::After)
can i only get this example ? I'm really bad at styling
excelente! gracias!!
Thats Amazing but how to use this in dashboard ? i need this card in dashboard not on other special page.
I don't think that package is meant for the purpose of dashboard. But I'm not the creator, so you may raise a GitHub issue and ask them.
Thanks Povilas! Pretty good!
If you add the form attribute with your form's action to your x-filament button it will enable the processing state when a user presses the button. So something like <x-filament::button form="submit" type="submit"> from your project example.
Pretty good!
thanks ,it is very useful
Good example of how to extend filament login logic. Two remarks: 1. Why not override the authenticate method of the base class by performing the custom logic and then calling the base class authenticate method impementation in case the custom logic passes. This would protect against future changes in the filament base class. 2. I consider showing the reason why the login fails as an elevated security risk. Just 'login failed' as a general message is enough 🙂
Good suggestions!
you can use same widget for List and View/Edit. all you need is to wrap the `where()` statement in a `when()` function
This awesome lesson
As a tip, there is also getFooterWidgets.
If you want to omit one of the values in the enum for a ToggleButton, you could do it like so: Forms\Components\ToggleButtons::make('status') ->options( collect(StatusEnum::cases()) ->filter(fn($status) => $status !== StatusEnum::CLOSED) ->mapWithKeys(fn($status) => [$status->value => $status->getLabel()]) ->toArray() ) ->colors( collect(StatusEnum::cases()) ->filter(fn($status) => $status !== StatusEnum::CLOSED) ->mapWithKeys(fn($status) => [$status->value => $status->getColor()]) ->toArray() ) ->icons( collect(StatusEnum::cases()) ->filter(fn($status) => $status !== StatusEnum::CLOSED) ->mapWithKeys(fn($status) => [$status->value => $status->getIcon()]) ->toArray() ),
Thanks for the helpful tutorial. Is it possible to show another example for MorphToSelect and how can we use it with Set and Get functionality with another field for example TagsInput
When I click on sendinvoice, nothing happens? Do I have setup something else which is not mentioned in the tutorial?