File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -143,11 +143,23 @@ class Project extends Model
143
143
return $this->belongsTo(Category::class, 'parent_id');
144
144
}
145
145
146
+ // ...
147
+
148
+ public static function configureOzuCollectionList(OzuCollectionListConfig $config): OzuCollectionListConfig
149
+ {
150
+ return $config
151
+ // Optionally add a filter for the Project list in the CMS
152
+ ->declareBelongsToFilter(ozuModelClass: Category::class, label: 'Saison', required: true)
153
+ ->addColumn(/* ... */);
154
+ // ...
155
+ }
156
+
146
157
// ...
147
158
148
159
public static function configureOzuCollectionForm(OzuCollectionFormConfig $config): OzuCollectionFormConfig
149
160
{
150
161
return $config
162
+ // Add a BelongsTo select field in the Project form in the CMS
151
163
->declareBelongsToField(ozuModelClass: Category::class, label: 'Project Category')
152
164
->addCustomField(/* ... */);
153
165
// ...
You can’t perform that action at this time.
0 commit comments