![Filament Daily](/img/default-banner.jpg)
- Видео 125
- Просмотров 345 393
Filament Daily
Литва
Добавлен 20 авг 2023
Quick tips and tricks about the Laravel Filament system.
Filament Peek Plugin: Preview for Pages and Live Editor
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
Link: filamentphp.com/plugins/pboivin-peek
More Filament examples on our website: filamentexamples.com
Просмотров: 1 234
Видео
Filament Multi-Tenancy: Example of One Team per User
Просмотров 8387 часов назад
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
Просмотров 9939 часов назад
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
Просмотров 1,4 тыс.21 час назад
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
Просмотров 901День назад
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
Просмотров 2,3 тыс.День назад
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
Просмотров 2,2 тыс.14 дней назад
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" ruclips.net/video/ZDW8NBzVdpo/видео.html and a follow-up "Solution to Filament PHP Performance issue" ruclips.net/video/NzPsKfqeLLM/видео.html - GitHub issue discuss...
Filament Plugin: Select Tree for Multi-Level Categories
Просмотров 1,4 тыс.14 дней назад
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
Просмотров 3,6 тыс.14 дней назад
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
Просмотров 1,9 тыс.21 день назад
A 2-in-1 example of implementing roles: in the same panel or in separate panels? Also, building a common login form or not? - Source for single panel: filamentexamples.com/project/filament-roles-in-sign-up-and-different-resources - Source for multiple panels: filamentexamples.com/project/filament-roles-with-multiple-panels - Original job description PDF: drive.google.com/file/d/1C5ohDepLzLOtlUV...
NEW in Filament: Preview of Builder Blocks
Просмотров 1,7 тыс.21 день назад
A new feature released in Filament 3.2 recently. Links mentioned in the video: - PR: github.com/filamentphp/filament/pull/12629 - Tweet by Adam: x.com/awcodes1/status/1800280063729950807 - Builder field docs: filamentphp.com/docs/3.x/forms/fields/builder More Filament examples on our website: filamentexamples.com
Filament: User / Team Admin / Super Admin - Boilerplate
Просмотров 1,8 тыс.21 день назад
Let me show you a simple demo of a task management system with users, teams and roles. GitHub repo: github.com/LaravelDaily/Filament-User-Team-Super-Admin More Filament examples on our website: filamentexamples.com
Filament: Confirmation Modal on Create Submit Button
Просмотров 1,3 тыс.28 дней назад
Demonstrating the tip by Leandro Ferreira, expanding with a bit of context. Original tweet: x.com/leandrocfe/status/1800169819880472924 More Filament examples on our website: filamentexamples.com
Filament "Live" Fields: Loading Indicator
Просмотров 1,7 тыс.Месяц назад
What if you have a form with dynamic elements and expect a slow network connection for your users? It's important to show them that something is "Loading..." on the page. Links mentioned in the video: - Code on our Filament Examples: filamentexamples.com/project/loading-indicator-live-slow-network-connection - Discord thread with the solution: discord.com/channels/883083792112300104/12469097615...
Filament Performance: 1M DB Rows - Benchmark
Просмотров 4,6 тыс.Месяц назад
Let's test if Filament is slower with larger amount of data, and discuss the SQL queries under the hood. Links mentioned in the video: - Official Filament Demo on GitHub: github.com/filamentphp/demo - SQL dump of the database shown in the video: drive.google.com/file/d/1P284fqu8LYmsqPOrnXfYlAIfL1xIENxg/view?usp=sharing - Filament issue I've opened: github.com/filamentphp/filament/issues/13388 -...
Filament Plugin: Record Navigation from Edit Page
Просмотров 1,6 тыс.Месяц назад
Filament Plugin: Record Navigation from Edit Page
Filament Edit Profile Plugin with Many Customizations
Просмотров 2,3 тыс.Месяц назад
Filament Edit Profile Plugin with Many Customizations
Filament Login Link: Passwordless Local Sign In
Просмотров 1,2 тыс.Месяц назад
Filament Login Link: Passwordless Local Sign In
Filament Environment Indicator Plugin: Quick Demo
Просмотров 1,1 тыс.Месяц назад
Filament Environment Indicator Plugin: Quick Demo
Filament Panel Provider: How to Access Auth User()?
Просмотров 1,3 тыс.Месяц назад
Filament Panel Provider: How to Access Auth User()?
Filament Registration Form as a Wizard
Просмотров 1,5 тыс.Месяц назад
Filament Registration Form as a Wizard
Filament: 3 Quick Tips to Make Forms Take Less Space
Просмотров 2,2 тыс.Месяц назад
Filament: 3 Quick Tips to Make Forms Take Less Space
NEW on Filament Examples: Search by Tag or Query
Просмотров 813Месяц назад
NEW on Filament Examples: Search by Tag or Query
Filament FullCalendar Plugin: Quick Demo
Просмотров 2,2 тыс.Месяц назад
Filament FullCalendar Plugin: Quick Demo
Filament Impersonate Plugin: Log In as Other User
Просмотров 1,2 тыс.Месяц назад
Filament Impersonate Plugin: Log In as Other User
Filament Security: Back-End Validation for Dynamic Forms
Просмотров 1,6 тыс.Месяц назад
Filament Security: Back-End Validation for Dynamic Forms
Filament Table Filter with Numbers in Parentheses
Просмотров 1 тыс.2 месяца назад
Filament Table Filter with Numbers in Parentheses
Filament: Get Available Time Slots with Date Picker
Просмотров 1,5 тыс.2 месяца назад
Filament: Get Available Time Slots with Date Picker
Filament: Create/Edit Form Redirect to Index
Просмотров 1,8 тыс.2 месяца назад
Filament: Create/Edit Form Redirect to Index
Filament Examples: We Lowered the Prices. Kind of.
Просмотров 8052 месяца назад
Filament Examples: We Lowered the Prices. Kind of.
would you kindly tell me what intellisense extension you used when you typed getNavigationLabel ?
Excelente plugin, lo vamos a utilizar!! :)
Hi looks nice and very useful! Does it also support multiple selektion? Thanks
I use very often octoberCMS. But with this plugin Fabricator and the media i am working to swap to fillamnet. Need contact form plugin similar to Wind.
I already used this plugin with fabricator, but didn't know it had a feature to edit the builder and get a live preview :O I must try it out with fabricator
very useful , I have question : How to set focus to other TextInput from afterStateUpdated() of other TextInput filament php, Thanks
I haven't done it myself, so I don't know, and I can't find anything in the docs. Perhaps because setting the focus manually is against the user's will so it's considered a bad UX practice?
I am struggling with this error 'Using $this when not in object context'. Turns out I was using Route::view rather than Route::get. It fixed the error for me. You might also need to configure your component layout file.
i must try this out oh
Hi brother, I've buy the filament example full access, but i didn't received the example email link and github invitation. Please help me check it.
Email me povilas@laraveldaily.com and tell what email you purchased from, I will check
Sir, I have a question, how to create single login filament for Two panels (admin & students). to create roles using the filament shield plugin. If the logged in user has the admin role, the user will be directed to the admin panel. Likewise, if the user has the student role, he will be directed to the student panel.
Watch this recent video about multiple panels, it starts from ~3 minutes: ruclips.net/video/9hRgCjDQDGw/видео.html
Thanks for this Povilas. Although I had seen it before I came back to it as I did need it in a project today. I am a long time consumer of your Laravel and now Filament content and appreciate it very much. I am also a premium member and purchased as well the Livewire components from you. A long time PHP guy but not so long with Laravel. Thanks for helping a 65 year old coder shake off the cobwebs. ;-)
Glad to help!
It’s really frustrating when you think you’ve found the solution on Google, only to realize it’s selected an older version of the Filament documentation
Great video! It would be nice to have more tutorials like this... Intermediate and advanced Filament, since most of the tutorials found are "Filament from start"
in advanced admin panel situations i prefer to use the tables and forms and infolists on my own pages & livewire components that way its a lot easier to customize the permissions and other things the way i want i use for example breeze or jetstream and use the components from filament for the functionalities
Can you give me tutor to make multi auth with jetstream and livewire ?
Haven't been first in a while
How to get the 10th day of the current month? DatePicker::make('day') ->native(false) ->default(now()->subDay(20))
Filament docs improved a lot in v3 but I hope this video also serves as motivation for the devs to make it even better. Some of the Filament blade components are either still not documented or I just skipped over the part where it was stated they are not meant for separate use.
Please make a make a video for student attendance sheet❤ Thanks in advance
Yeah... Algolia can be a nightmare sometimes (or more time than "some")
i.e. algolia is extremely inefficient 🫣😅
I was really struggling to find something in the Filament docs, but the tricks you shared are useful. Thank you!
yes, i always search on github too!
Great insights!
always helpful tips. Thank you Sir
Hello Povilas, thank you for the videos. I wonder if you ever worked with generate random password in a user creation/modification form in a filament application!!
Yes, with Livewire, so you can get some ideas here: ruclips.net/video/Cv3MmZpxQvM/видео.html
I've been trying to get this to work in custom Page outside of a Resource and I'm having some issues with the implementation. Not sure what needs to be changed from using it in a Resource like this as apposed to my usecase, but any advice would be greatly appreciated. If more information is needed to help me, I would happy to provide more I just don't want to bloat this comment if its a simple change/fix
Impossible to answer without debugging the code, sorry
fu**k it is work !
Hey Povilas! To open the action via the URL, the param is called `action` not `defaultAction`, so in your case it would be: ?action=newOrdersToday
->recordUrl(null) did not work for me but ->recordAction(null) did the job and the rows are no longer clickable.
combined with spatie flags, huge!
thank you for the video, i didn't know that!
I ended up doing this ... Open to suggested improvements please. To make it more generic I would hash the page name or something for the session key. Something like $pagename = md5($this->getResourcePageName()); substitute 'beenHerex' with $pagename Code ... public $defaultAction = 'expiringApprovals'; public function expiringApprovals(): Actions\Action { $expiringApprovals = Approval::query() ->whereDate('dateofexpiry', '<=', now()); return Actions\Action::make('expiringApprovals') ->visible(($expiringApprovals->count() > 0) && (!session('beenHerex', false))) ->modalSubmitActionLabel('Got it !') ->action(fn () => session(['beenHerex' => true])) ->color('success') ->modalCancelAction(false) ->modalHeading('Expired Approvals') ->modalDescription('You have ' . $expiringApprovals->count() . ' approvals that have expired.'); }
does this also have wire:navigate.hover, that it preloads the page?
Just what I needed, Thankyou Povilas
Yes! I'll use it, great!
As always the right video at the right time. Thank you Povilas
On way to enable it on specific forms is to use a closure to detect the route and return a Boolean based on that, something like this, ->unsavedChangesAlerts(fn () => request()->route()->named(EditUser::getRouteName()) ) In this case we have a user resource and we want to enable the alert only on the edit page route , Note that this is a simple example and this of course can be used with multiple routes or used in the negative with "!" to disable it for specific routes instead.
Good! Is there a way to add an option to "Don't show anymore" in consequent visits to the page?
Since you control the function that executes the message, you could persist a variable that stores if it was displayed, so it wont display it the next time the page is lodaded. Keep in mind there will be an aditional query every page load. Cache could be a good use for this sort of check.
i want auto open model for validation form
What do you mean?
It turns out, that you indeed need the property `public $defaultAction = 'newOrdersToday';`. Without that, the action is not fired. 🤔
Maybe you have to add "Action" to the function name ?
Can someone help me? I need to catch closing modal event, i cant find it in docs
Source dive
If you find it let me know because I haven't found the correct way to do that. As far as I know, both the open and close events seems to be scoped to the modal document, it's not an event dispatched through Livewire.
is it possible to do it in the dashboard?
This is a nice function to use for showing if there are any overdue invoices. Keep up the great work!
Can't wait for the course, would love to see customizations of the filters on tables and tables in general.
What kinds of customizations exactly, for example?
@@FilamentDaily more options for table column layouts for example. A more compact design for columns. Changing the way filter dropdowns or modals look for example.
To be honest, I don't think we have much customization ability for those but we will try to experiment.
How to select only required columns from db instead of loading all columns in filament tables?
You can override base query, like this: laraveldaily.com/post/filament-table-modify-base-query-by-user-role-condition
i have a question how can i access the url parameter in table widget?
Here's our article about URLs: laraveldaily.com/post/filament-get-urls-route-names-resources-pages
@@FilamentDaily really thank you very much
but i cant get the id from url in widget to use in in query
@@elhamnohroozian4689 what are you trying to do? Because of how livewire works you cannot get url params.
they are really helpful,thanks for sharing
yep it is helpful, thanks
hello sir, Is there anyway to detect if any changes made in my form when edit mode?
From the docs: This is applied on Create and Edit pages of a resource, as well as any open action modals.