Skip to content

Commit 9312bbe

Browse files
committed
Update README.md
1 parent a9535ca commit 9312bbe

File tree

5 files changed

+25
-24
lines changed

5 files changed

+25
-24
lines changed

src/CoreServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public function configurePackage(Package $package): void
4848
->name('core')
4949
->hasConfigFile()
5050
->hasTranslations()
51-
->hasViews()
5251
->hasRoutes(['api', 'web'])
5352
->hasCommand(MooxInstaller::class)
5453
->hasCommand(PackageServiceCommand::class);

src/Entities/Items/Draft/Pages/BaseCreateDraft.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ public function getHeaderActions(): array
9393

9494
return [
9595
ActionGroup::make(
96-
$languages->map(fn ($localization) => Action::make('language_'.$localization->language->alpha2)
97-
->icon('flag-'.$localization->language->alpha2)
98-
->label('')
99-
->color('transparent')
100-
->extraAttributes(['class' => 'bg-transparent hover:bg-transparent flex items-center gap-1'])
101-
->url(fn () => $this->getResource()::getUrl('create', ['lang' => $localization->language->alpha2]))
102-
)
103-
->toArray()
96+
$languages->map(
97+
fn ($localization) => Action::make('language_'.$localization->language->alpha2)
98+
->icon('flag-'.$localization->language->alpha2)
99+
->label('')
100+
->color('transparent')
101+
->extraAttributes(['class' => 'bg-transparent hover:bg-transparent flex items-center gap-1'])
102+
->url(fn () => $this->getResource()::getUrl('create', ['lang' => $localization->language->alpha2]))
103+
)->all()
104104
)
105105
->color('transparent')
106106
->label('Language')

src/Entities/Items/Draft/Pages/BaseEditDraft.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,15 @@ public function getHeaderActions(): array
115115

116116
return [
117117
ActionGroup::make(
118-
$languages->map(fn ($localization) => Action::make('language_'.$localization->language->alpha2)
119-
->icon('flag-'.$localization->language->alpha2)
120-
->label('')
121-
->color('transparent')
122-
->extraAttributes(['class' => 'bg-transparent hover:bg-transparent flex items-center gap-1'])
123-
->url(fn () => $this->getResource()::getUrl('edit', ['record' => $this->record, 'lang' => $localization->language->alpha2]))
118+
$languages->map(
119+
fn ($localization) => Action::make('language_'.$localization->language->alpha2)
120+
->icon('flag-'.$localization->language->alpha2)
121+
->label('')
122+
->color('transparent')
123+
->extraAttributes(['class' => 'bg-transparent hover:bg-transparent flex items-center gap-1'])
124+
->url(fn () => $this->getResource()::getUrl('edit', ['record' => $this->record, 'lang' => $localization->language->alpha2]))
124125
)
125-
->toArray()
126+
->all()
126127
)
127128
->color('transparent')
128129
->label('Language')

src/Entities/Items/Draft/Pages/BaseViewDraft.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@ public function getHeaderActions(): array
4848

4949
return [
5050
ActionGroup::make(
51-
$localizations->map(fn ($localization) => Action::make('language_'.$localization->language->alpha2)
52-
->icon('flag-'.$localization->language->alpha2)
53-
->label('')
54-
->color('transparent')
55-
->extraAttributes(['class' => 'bg-transparent hover:bg-transparent flex items-center gap-1'])
56-
->url(fn () => $this->getResource()::getUrl('view', ['record' => $this->record, 'lang' => $localization->language->alpha2]))
51+
$localizations->map(
52+
fn ($localization) => Action::make('language_'.$localization->language->alpha2)
53+
->icon('flag-'.$localization->language->alpha2)
54+
->label('')
55+
->color('transparent')
56+
->extraAttributes(['class' => 'bg-transparent hover:bg-transparent flex items-center gap-1'])
57+
->url(fn () => $this->getResource()::getUrl('view', ['record' => $this->record, 'lang' => $localization->language->alpha2]))
5758
)
58-
->toArray()
59+
->all()
5960
)
6061
->color('transparent')
6162
->label('Language')

src/Forms/TaxonomyCreateForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Moox\Core\Forms;
44

5-
use Camya\Filament\Forms\Components\TitleWithSlugInput;
5+
use Moox\Slug\Forms\Components\TitleWithSlugInput;
66

77
class TaxonomyCreateForm
88
{

0 commit comments

Comments
 (0)