Black Friday: coupon FRIDAY24 for 40% off Yearly/Lifetime membership! Read more here

This Week in Filament #2: August 17, 2023

The second issue of a new weekly tradition: every Wednesday/Thursday, I will publish an article with all the news about Filament from the previous week.

This week actually feels less active because the initial hype about Filament 3 died down a bit. That's normal. The daily releases are mostly about fixes in the docs, and Twitter isn't buzzing only about Filament.

But still, a lot to cover!


Filament Tips From Me

Tip 1. Resource Properties Should Be Static

If you create a property in the Resource class to reuse it in methods, make it STATIC.

Both form() and table() methods are static, so if you use smth like $this->options, it will throw an error.

Create a static property and then use it as self::$options


Tip 2. Toggleable Columns

In tables, you can make any column toggleable, hiding it from the table in the top right corner.

Just add the method toggleable() to the chain.

Changing the method parameter to "true" makes it hidden by default.

Link to docs


Tip 3. TranslateLabel Method

If you work with multilingual projects and want to translate the labels, you don't have to use the __() method everywhere.

There's a specific method, translateLabel(), which tries to automatically "guess" the key if you don't specify it.


Tutorials/Tweets from the Community


Official Releases: 3.0.16 - 3.0.23

The majority of this week's changes were about fixes and docs improvements, but still some new features, too:

You can check out all the versions on the official Releases page.


That's it for this second issue of "This Week in Filament".

Let me know what you think in the comments!


If you want more Filament examples, you can find more real-life projects on our FilamentExamples.com.

No comments or questions yet...

Like our articles?

Become a Premium Member for $129/year or $29/month
What else you will get:
  • 67 courses (1172 lessons, total 43 h 18 min)
  • 90 long-form tutorials (one new every week)
  • access to project repositories
  • access to private Discord

Recent New Courses