Skip to content

Commit 859110c

Browse files
committed
fix dummy crud in demo
1 parent 6259f89 commit 859110c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/Http/Controllers/Admin/DummyCrudController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function setupCreateOperation()
7373
'type' => 'repeatable',
7474
'fake' => true,
7575
'store_in' => 'extras',
76-
'fields' => $groupFields,
76+
'subfields' => $groupFields,
7777
]);
7878
}
7979
}

app/Models/Dummy.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ public function articles()
7676
return $this->belongsToMany(\Backpack\NewsCRUD\app\Models\Article::class, 'monster_article', 'monster_id', 'article_id');
7777
}
7878

79+
public function categorySelect2()
80+
{
81+
return $this->belongsTo(\Backpack\NewsCRUD\app\Models\Category::class, 'select2');
82+
}
83+
7984
/*
8085
|--------------------------------------------------------------------------
8186
| SCOPES

0 commit comments

Comments
 (0)