Skip to content

Commit

Permalink
clenaup
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Mar 6, 2023
1 parent 169002b commit d6ef8b5
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 43 deletions.
82 changes: 41 additions & 41 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Fields/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ abstract class Field implements Arrayable
/**
* Create a new field instance.
*/
public function __construct(string $label, ?string $name = null)
public function __construct(string $label, string $name = null)
{
$this->label($label);
$this->name($name ??= Str::of($label)->lower()->snake()->toString());
Expand Down
2 changes: 1 addition & 1 deletion src/Fields/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ abstract class Relation extends Field
/**
* Create a new relation field instance.
*/
public function __construct(string $label, ?string $name = null, Closure|string $relation = null)
public function __construct(string $label, string $name = null, Closure|string $relation = null)
{
parent::__construct($label, $name);

Expand Down

0 comments on commit d6ef8b5

Please sign in to comment.