You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will create a `fields.php` file in your `config` directory. Make sure to fill in the tenant relationship and the tenant model (if you're using multi-tenancy). When running the migrations, the fields table will be created with the correct tenant relationship.
58
+
This will create a `filament-fields.php` file in your `config` directory. Make sure to fill in the tenant relationship and the tenant model (if you're using multi-tenancy). When running the migrations, the fields table will be created with the correct tenant relationship.
59
+
60
+
The content of the `filament-fields.php` file is as follows:
61
+
62
+
```php
63
+
<?php
64
+
65
+
return [
66
+
67
+
'tenancy' => [
68
+
'is_tenant_aware' => true,
69
+
70
+
'relationship' => 'tenant',
71
+
72
+
// 'model' => \App\Models\Tenant::class,
73
+
],
74
+
75
+
'custom_fields' => [
76
+
// App\Fields\CustomField::class,
77
+
],
78
+
79
+
// When populating the select field, this will be used to build the relationship options.
80
+
'selectable_resources' => [
81
+
// App\Filament\Resources\ContentResource::class,
82
+
],
83
+
];
84
+
```
59
85
60
86
You can publish and run the migrations with:
61
87
@@ -137,7 +163,7 @@ class EditSetting extends EditRecord
137
163
138
164
### Add resources as options for select fields
139
165
140
-
To add resources as options for select fields, you can add them to the `filament-fields.select.resource_options` config array.
166
+
To add resources as options for select fields, you can add them to the `filament-fields.selectable_resources` config array.
141
167
142
168
```php
143
169
return [
@@ -160,7 +186,7 @@ return [
160
186
To register your own fields, you can add them to the `filament-fields.fields` config array.
0 commit comments