Mod sleect for contribution compilers
This commit is contained in:
parent
3db7e4592e
commit
3ea0682b7c
|
@ -32,8 +32,8 @@ class ContributionFactory
|
||||||
public function compilerSelect(): Collection
|
public function compilerSelect(): Collection
|
||||||
{
|
{
|
||||||
return collect($this->documents)->map(fn ($document) => [
|
return collect($this->documents)->map(fn ($document) => [
|
||||||
'title' => $document::buttonName(),
|
'name' => $document::buttonName(),
|
||||||
'class' => $document,
|
'id' => $document,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ class ContributionRequestFactory extends RequestFactory
|
||||||
{
|
{
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
$compilers = collect(app(ContributionFactory::class)->compilerSelect())->pluck('class');
|
$compilers = collect(app(ContributionFactory::class)->compilerSelect())->pluck('id');
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'country' => Country::factory()->create()->id,
|
'country' => Country::factory()->create()->id,
|
||||||
|
|
Loading…
Reference in New Issue