Skip to content

Commit

Permalink
Update field type config attribute setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cklei-carly committed Aug 15, 2024
1 parent 16d5ae5 commit 12d456f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/FieldTypes/Configs/Attributes/ConfigName.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

namespace SolutionForest\FilamentFieldGroup\FieldTypes\Configs\Attributes;

#[\Attribute]
use Attribute;

/**
* @property string $name The name of the field type configuration.
* @property string $label The label of the field type configuration.
* @property string $group The group of the field type configuration.
*/
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
class ConfigName
{
public function __construct(
Expand Down
7 changes: 6 additions & 1 deletion src/FieldTypes/Configs/Attributes/FormComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

namespace SolutionForest\FilamentFieldGroup\FieldTypes\Configs\Attributes;

#[\Attribute]
use Attribute;

/**
* @property string $fqcn The fully qualified class name of the form component.
*/
#[Attribute(Attribute::TARGET_CLASS)]
class FormComponent
{
public function __construct(
Expand Down

0 comments on commit 12d456f

Please sign in to comment.