Allow adding custom Macroable classes. (#1629)

* Allow adding custom Macroable classes.

* Remove duplication, tweak config

* Remove test

---------

Co-authored-by: Barry vd. Heuvel <[email protected]>
This commit is contained in:
Mathieu TUDISCO
2025-01-01 13:17:20 +01:00
committed by GitHub
co-authored by Barry vd. Heuvel
parent beda399e7e
commit 05d9c3cd65
5 changed files with 36 additions and 32 deletions
+14
View File
@@ -334,4 +334,18 @@ return [
// 'ide-helper:models --nowrite',
],
/*
|--------------------------------------------------------------------------
| Macroable Traits
|--------------------------------------------------------------------------
|
| Define which traits should be considered capable of adding Macro.
| You can add any custom trait that behaves like the original Laravel one.
|
*/
'macroable_traits' => [
\Filament\Support\Concerns\Macroable::class,
\Spatie\Macroable\Macroable::class,
],
];