@@ -296,6 +296,26 @@ default configuration:
296
296
297
297
``` php
298
298
return [
299
+ /*
300
+ |--------------------------------------------------------------------------
301
+ | Custom Fields Resource Configuration
302
+ |--------------------------------------------------------------------------
303
+ |
304
+ | This section controls the Custom Fields resource.
305
+ | This allows you to customize the behavior of the resource.
306
+ |
307
+ */
308
+ 'custom_fields_resource' => [
309
+ 'should_register_navigation' => true,
310
+ 'slug' => 'custom-fields',
311
+ 'navigation_sort' => -1,
312
+ 'navigation_badge' => false,
313
+ 'navigation_group' => true,
314
+ 'is_globally_searchable' => false,
315
+ 'is_scoped_to_tenant' => true,
316
+ 'cluster' => null,
317
+ ],
318
+
299
319
/*
300
320
|--------------------------------------------------------------------------
301
321
| Entity Resources Configuration
@@ -314,6 +334,24 @@ return [
314
334
//
315
335
],
316
336
337
+ /*
338
+ |--------------------------------------------------------------------------
339
+ | Entity Resources Customization
340
+ |--------------------------------------------------------------------------
341
+ |
342
+ | This section allows you to customize the behavior of entity resources,
343
+ | such as enabling table column toggling and setting default visibility.
344
+ |
345
+ */
346
+ 'resource' => [
347
+ 'table' => [
348
+ 'columns_toggleable' => [
349
+ 'enabled' => true,
350
+ 'hidden_by_default' => true,
351
+ ],
352
+ ],
353
+ ],
354
+
317
355
/*
318
356
|--------------------------------------------------------------------------
319
357
| Lookup Resources Configuration
@@ -334,33 +372,30 @@ return [
334
372
335
373
/*
336
374
|--------------------------------------------------------------------------
337
- | Resource Table Configuration
375
+ | Tenant Awareness Configuration
338
376
|--------------------------------------------------------------------------
339
377
|
340
- | This section allows you to customize the behavior of resource tables,
341
- | such as enabling column toggling and setting default visibility.
378
+ | When enabled, this feature implements multi-tenancy using the specified
379
+ | tenant foreign key. Enable this before running migrations to automatically
380
+ | register the tenant foreign key.
342
381
|
343
382
*/
344
- 'resource' => [
345
- 'table' => [
346
- 'columns_toggleable' => [
347
- 'enabled' => true,
348
- 'hidden_by_default' => true,
349
- ],
350
- ],
351
- ],
383
+ 'tenant_aware' => true,
384
+
352
385
353
386
/*
354
387
|--------------------------------------------------------------------------
355
- | Tenant Awareness Configuration
388
+ | Database Migrations Paths
356
389
|--------------------------------------------------------------------------
357
390
|
358
- | When enabled, this feature implements multi-tenancy using the specified
359
- | tenant foreign key. Enable this before running migrations to automatically
360
- | register the tenant foreign key .
391
+ | In these directories custom fields migrations will be stored and ran when migrating. A custom fields
392
+ | migration created via the make:custom-fields-migration command will be stored in the first path or
393
+ | a custom defined path when running the command .
361
394
|
362
395
*/
363
- 'tenant_aware' => false,
396
+ 'migrations_paths' => [
397
+ database_path('custom-fields'),
398
+ ],
364
399
365
400
/*
366
401
|--------------------------------------------------------------------------
@@ -392,6 +427,7 @@ return [
392
427
];
393
428
```
394
429
430
+
395
431
## Preset Custom Fields
396
432
397
433
Preset Custom Fields allow developers to programmatically define, deploy, and manage custom fields for Filament
0 commit comments