Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here
Tutorial Free

This Week in Filament #2: August 17, 2023

August 17, 2023
3 min read

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.

Enjoyed This Tutorial?

Get access to all premium tutorials, video and text courses, and exclusive Laravel resources. Join our community of 10,000+ developers.

Comments & Discussion

No comments yet…

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.