Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
cklei-carly committed Sep 5, 2024
2 parents babd4ef + 4b6442d commit 3f267e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/FilamentFieldGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,14 @@ public function getFieldTypeConfig($name, array | string $data = [])
//region Helper methods
protected function replaceModelClass(string $interfaceClass, string $modelClass): void
{
switch ($interfaceClass)
{
switch ($interfaceClass) {
case \SolutionForest\FilamentFieldGroup\Models\Contracts\FieldGroup::class:
$this->setFieldGroupModelClass($modelClass);

break;
case \SolutionForest\FilamentFieldGroup\Models\Contracts\Field::class:
$this->setFieldModelClass($modelClass);

break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Contracts/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Spatie\EloquentSortable\Sortable;

interface Field extends Sortable
interface Field extends Sortable
{
public function group(): BelongsTo;
}
4 changes: 2 additions & 2 deletions src/Models/Contracts/FieldGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Illuminate\Database\Eloquent\Relations\HasMany;
use Spatie\EloquentSortable\Sortable;

interface FieldGroup extends Sortable
interface FieldGroup extends Sortable
{
public function fields(): HasMany;

/**
* @return \Filament\Forms\Components\Component
*/
Expand Down

0 comments on commit 3f267e7

Please sign in to comment.