![Filament Daily](/img/default-banner.jpg)
- 131
- 364 807
Filament Daily
Lithuania
Registrace 20. 08. 2023
Quick tips and tricks about the Laravel Filament system.
Filament Plugin: Spatie Settings - Practical Example
A showcase of Spatie Settings plugin for Filament.
Spatie Settings plugin page: filamentphp.com/plugins/filament-spatie-settings
Source in Cachet: github.com/cachethq/core/blob/3321dbab6b533cc737c223f4310a6dd2e4b02cc0/src/Filament/Pages/ManageCachet.php#L13
More Filament examples on our website: filamentexamples.com
Spatie Settings plugin page: filamentphp.com/plugins/filament-spatie-settings
Source in Cachet: github.com/cachethq/core/blob/3321dbab6b533cc737c223f4310a6dd2e4b02cc0/src/Filament/Pages/ManageCachet.php#L13
More Filament examples on our website: filamentexamples.com
zhlédnutí: 1 323
Video
Filament: ToggleButtons with ENUMs - a Great Combination
zhlédnutí 1,2KPřed 4 hodinami
An example of ToggleButton for selecting various options. Source: github.com/cachethq/core/blob/3321dbab6b533cc737c223f4310a6dd2e4b02cc0/src/Filament/Resources/ComponentGroupResource.php#L33 More Filament examples on our website: filamentexamples.com
Filament: Static Text Custom Widgets on the Dashboard
zhlédnutí 1,2KPřed 7 hodinami
Cachet project has an example of very simple widgets that I wanted to show. Source: github.com/cachethq/core/tree/3321dbab6b533cc737c223f4310a6dd2e4b02cc0/src/Filament/Widgets More Filament examples on our website: filamentexamples.com
Filament: Update Field in Edit Form or Table Action
zhlédnutí 1,2KPřed 19 hodinami
Example of Cachet Filament dashboard: for repeating update operations, you may add them to the table as an action. Source: github.com/cachethq/core/blob/3321dbab6b533cc737c223f4310a6dd2e4b02cc0/src/Filament/Resources/ScheduleResource.php#L74 More Filament examples on our website: filamentexamples.com
Filament Hint as a Link with Dynamic Text
zhlédnutí 782Před 21 hodinou
Example from open-source Cachet project with an input hint that is built dynamically with different link/text. Source: github.com/cachethq/core/blob/3321dbab6b533cc737c223f4310a6dd2e4b02cc0/src/Filament/Resources/IncidentTemplateResource.php#L37 More Filament examples on our website: filamentexamples.com
Filament Shield for Roles and Permissions: Demo Blog
zhlédnutí 1,9KPřed dnem
A new project on our Filament Examples, showcasing Shield plugin. Let me show you how it works. Plugin page: filamentphp.com/plugins/bezhansalleh-shield Full source code: filamentexamples.com/project/cms-with-shield-plugin-roles-and-permissions
Filament Peek Plugin: Preview for Pages and Live Editor
zhlédnutí 1,7KPřed 14 dny
If you're working with a CMS project and want to quickly preview how the post would look, this plugin can help. Link: filamentphp.com/plugins/pboivin-peek More Filament examples on our website: filamentexamples.com
Filament Multi-Tenancy: Example of One Team per User
zhlédnutí 1,1KPřed 14 dny
A demo project of how multi-tenancy works in Filament. Full project: filamentexamples.com/project/multi-tenancy-with-one-team-for-user Docs of multi-tenancy: filamentphp.com/docs/3.x/panels/tenancy
Filament: How To (Better) Search the Docs
zhlédnutí 1,2KPřed 14 dny
My personal example of how I searched for something but then found two alternative (better) ways. More Filament examples on our website: filamentexamples.com
Filament: Auto-Open Modal on Page with Default Action
zhlédnutí 1,6KPřed 21 dnem
A recently found undocumented Filament feature of $defaultAction. Original tweet: x.com/archilex/status/1809431172092477843 More Filament examples on our website: filamentexamples.com
Filament: "Leave Site" Alert After Form Changes
zhlédnutí 983Před 21 dnem
There is a small feature in Filament allowing you to warn your users if they made changes in the form and want to leave the page. Docs: filamentphp.com/docs/3.x/panels/configuration#unsaved-changes-alerts More Filament examples on our website: filamentexamples.com
Filament Theme with Material Design: Code Overview
zhlédnutí 2,5KPřed 21 dnem
So, we've build the core functionality of a custom theme inspired by Material Design. Full code: filamentexamples.com/project/custom-theme-material-design
Slow Modals in Filament: Livewire Performance Issue
zhlédnutí 2,4KPřed 28 dny
Let's talk about a slow behavior of modals on more complex pages of Filament. And the reasons. Links mentioned in the video: - Original tweet: x.com/joseph_ajibodu/status/1809187763142775088 - Video "Filament PHP performance Issue" czcams.com/video/ZDW8NBzVdpo/video.html and a follow-up "Solution to Filament PHP Performance issue" czcams.com/video/NzPsKfqeLLM/video.html - GitHub issue discussio...
Filament Plugin: Select Tree for Multi-Level Categories
zhlédnutí 1,5KPřed 28 dny
A great plugin for unlimited-level tree of categories in a Select field. Link to plugin: filamentphp.com/plugins/codewithdennis-select-tree More Filament examples on our website: filamentexamples.com
Filament: 6 FREE Open-Source Projects from GitHub
zhlédnutí 4KPřed měsícem
I've found 6 interesting projects on GitHub that use Filament, here's the list. 1. Official demo: github.com/filamentphp/demo 2. ERPSAAS: github.com/andrewdwallo/erpsaas 3. Tiny CRM: github.com/frikishaan/tiny-crm 4. Invobook: github.com/Hasnayeen/invobook 5. Genealogy by Kreaweb: github.com/MGeurts/genealogy 6. Genealogy by Liberu: github.com/liberu-genealogy/genealogy-laravel More Filament ex...
Filament Roles: Single vs Multiple Panels Example
zhlédnutí 2KPřed měsícem
Filament Roles: Single vs Multiple Panels Example
NEW in Filament: Preview of Builder Blocks
zhlédnutí 1,8KPřed měsícem
NEW in Filament: Preview of Builder Blocks
Filament: User / Team Admin / Super Admin - Boilerplate
zhlédnutí 1,9KPřed měsícem
Filament: User / Team Admin / Super Admin - Boilerplate
Filament: Confirmation Modal on Create Submit Button
zhlédnutí 1,5KPřed měsícem
Filament: Confirmation Modal on Create Submit Button
Filament "Live" Fields: Loading Indicator
zhlédnutí 1,8KPřed měsícem
Filament "Live" Fields: Loading Indicator
Filament Performance: 1M DB Rows - Benchmark
zhlédnutí 4,8KPřed měsícem
Filament Performance: 1M DB Rows - Benchmark
Filament Plugin: Record Navigation from Edit Page
zhlédnutí 1,6KPřed měsícem
Filament Plugin: Record Navigation from Edit Page
Filament Edit Profile Plugin with Many Customizations
zhlédnutí 2,5KPřed měsícem
Filament Edit Profile Plugin with Many Customizations
Filament Login Link: Passwordless Local Sign In
zhlédnutí 1,2KPřed měsícem
Filament Login Link: Passwordless Local Sign In
Filament Environment Indicator Plugin: Quick Demo
zhlédnutí 1,2KPřed měsícem
Filament Environment Indicator Plugin: Quick Demo
Filament Panel Provider: How to Access Auth User()?
zhlédnutí 1,4KPřed měsícem
Filament Panel Provider: How to Access Auth User()?
Filament Registration Form as a Wizard
zhlédnutí 1,6KPřed 2 měsíci
Filament Registration Form as a Wizard
Filament: 3 Quick Tips to Make Forms Take Less Space
zhlédnutí 2,2KPřed 2 měsíci
Filament: 3 Quick Tips to Make Forms Take Less Space
NEW on Filament Examples: Search by Tag or Query
zhlédnutí 823Před 2 měsíci
NEW on Filament Examples: Search by Tag or Query
Filament FullCalendar Plugin: Quick Demo
zhlédnutí 2,4KPřed 2 měsíci
Filament FullCalendar Plugin: Quick Demo
Thanks. All components, all pages is included or just samples cards and tables ?
How to show email with this icon like cross for unverified and check for verified?
Wow!! a MUST HAVE plugin! thanks for sharing!!!
what the name of WYSIWYG editor? its from filament?
yes, everything's from filament
It is a great package, but the problem is you can NOT log the changes of the settings with packages like laravel-auditing or spatie activitylog. Because those packages audit eloquent models , and Settings classes are not models. I have been searching for a solution but i can not find any. Can you please give me some advice 🙏 😭
Interesting problem. I guess you can still create an Observer and register that observer to the Settings model if you use the database.
Thanks 🙏
Im not sure if its a good pratice to store settings in db: every time you Need a setting its a query. I've seen other packages that stores settings in a JSON file. As idea It seems to be Better performance. I miss something?
You can enable the cache. Storing settings in a separated file requires to backup adn restore in synch with the database data.
I think a setting() helper it might be convenient
How to override Laravel default settings like timezone with this data from database?
You can overwrite the configuration value at runtime. For example add a middleware with this code config(['app.timezone' => auth()->user()->timezone])
@@BelgranoK thanks. The middleware approach is good for web routes, how about jobs or scheduled commands? I try to do the same in one service provider but I have some problems at the project first start, when there's no tables in database yet.
Thanks. It was very helpful for me!
If we can just make the settings resource simply like any other resources and access data like normal model methods, then why this package? Basically, I'm confused about the reason for using this package.
Yes, you can build everything yourself and not use packages to save time. That's your choice.
This is great package I use this in all my projects great to have for client to make changes on the front website from the dashboard.
I wanna ask if you log the changes of your settings using packaged like laravel auditing or spatie activity log? Share with us how to log the changes of the settings table?
need to update for full width modal 🤣
is it possible to make a POS or some sort of report pdf in widget? then make it be exportable
Not sure, depends on specific use case. But there are custom widgets where you can do whatever you want inside.
Great! I use Enums a lot! with Select, nice to use them with ToggleButtons
In a project I worked on, we had to normalize aggregated data from multiple sources. Each source had its own way of categorizing the data, which meant that sometimes, we encountered new or unexpected values that weren’t previously defined in our system so we had enum case that would also guess and auto categorize items on the fly.
All uppercase has been the norm for php constants and cases for a long time. Almost as part of definition. There’s nothing technically wrong with using lowercase for enum cases, but sticking with uppercase might be a better practice if you want to maintain consistency with the convention
I use the cases using uppercase, i guess is more readable?
Actually lowercase is more readable to native speakers because you recognize words by their shapes rather than reading them letter by letter and you don't normally encounter all uppercase words more than all lowercase. But it's a matter of preference and convention. Enum names are usually uppercase to make them stand out at a glance like constants. Syntax highlighting makes that less important but some still find it helpful.
I use dark mode in prod and light in dev and still mess up, so sadly not convinced it’d help someone as blind as me
Great video thanks! but i have problems whit validations. I need the modal opens only if the validations are correct. I mean, that validations runs in the first create buttom (in the form buttom, not in the modal buttom) can someone help me? thank you!!
nice!
Can we make pos with filament
That's great!
@FilamentDaily Thanks! How would you implement a three-level deep nested resources project? Oh, I also have a manyToMany relationship. I tried Nested Resources by Guava, but it does not support manyToMany relationships.
Currently it's not supported in Filament, from what I know
Great !♥
Very useful ! Is it possible to do the same thing in the view record page ?
@FilamentDaily Thanks for sharing! How would you implement a three-level deep nested resources project? Oh, I also have a manyToMany relationship. I tried Nested Resources by Guava, but it does not support manyToMany relationships.
Thanks
Can you show how to run this project locally..
There is also this New incident link in the top bar. I didn't know we can customize it
Thanks for your explanation.
That's exactly the way I was looking for a month ago on filament discord
Bulin 😂😂😂
Great plugin! And yes, it's such a pity docs don't include more screenshots. Sometimes a plugin sounds intresting to me, but without screenshots it takes too much time to figure out what exactly it does.
Great example, very usefull
Sir please tutor how to queue in filament
Queue what exactly? Generally it shouldn't be different from Laravel queues.
Excelente!!!
Add plugins([ ... ? What folder...
Super usefull Povilas, thanks
There could be content about images in Filament, deleting, saving and how to modify them both in the Resource and on custom pages.
It's pretty well written in the docs, no? What is the actual problem you're facing?
Hi, Is Possible Pass data Between Two Table Widgets via Action Table?
Hint with link great tip! Added to my project. Thanks!
Yeah. You could make how to handle 3 lvl deep relations in filament 3 For example, Product have many ProductItem and to ProductItem can be attached SizeOption with pivot fields Do i use relation manager and how or there is other way, maybe to redirect to other resource?
You are talking about Nested Resources, in a way, they are not conveniently supported in Filament 3, but we have a workaround: laraveldaily.com/post/filament-v3-nested-resources-trait-pages They plan to do more in v4.
@@FilamentDaily Thanks a lot. I will try to implement it. But again they should make it officially
Great tip, Povilas. Once again, I thank you and congratulate you on the work you do, unearthing true hidden gems in open source projects, tweets, Discord messages, often bringing us real use cases. I've told you a few times: I think I'm capable of learning anything from you explaining it 🙂
I'm new to this, may I know what's the use of the guard name there?
Ignore it, in most cases you don't need to change it at all
@@FilamentDaily I see, I hide it from its resources. thanks!
How side shield modole for other type of users
Hi, does anyone know a way to make translatable repiters and gallery with translatable custom fields (like alt, title, description, etc)? All Laravel admin panel software (tried Filament, Twill, Backpack) can't handle this task which is so important for my regular projects 😢
downside is by default "view" = doesnt let you view anything You will need "view any" also to view records which will make that user in return view all the records even if isnt the creator/owner. been struggling for this so i went back to filament/laravel's eloquent query - or even spatie permissions. Having a UI is really great BTW - that sold me out for this plugin but it wont work right out of the box - you need further tinkering it. Also if you rebuild your app and migrate the new to a new db, another cons would be you need to do shield commands also for it to work and you "may" (theres a chance) it wont work due to various reasons. overall great plugin and to play with
Think about it as permission to access the list route. To control what items are visible on the list page you'll need to modify the table query or better yet create a scope on the model.
View checks the policy and inside you can put logic to determine who can see an individual item. Like if user owns the item or someone on the users team owns it then return true to make it visible
Thanks
Thanks