Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Http/Concerns/InteractsWithInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,15 +276,15 @@ public function input(?string $key = null, mixed $default = null): mixed
*/
public function str(string $key, mixed $default = null): Stringable
{
return $this->string($key, $default);
return Text::of($this->input($key, $default));
}

/**
* Récupérez l'entrée de la requête en tant qu'instance Stringable.
* Récupérez l'entrée de la requête en tant que chaine de caractere.
*/
public function string(string $key, mixed $default = null): Stringable
public function string(string $key, mixed $default = null): string
{
return Text::of($this->input($key, $default));
return $this->str($key, $default)->value();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Validation/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* {@inheritDoc}
*
* @method static \BlitzPHP\Database\Validation\Rules\Exists exists(string $table, ?string $column = null)
* @method static \BlitzPHP\Dataabase\Validation\Rules\Unique unique(string $table, ?string $column = null, mixed $ignore = null)
* @method static \BlitzPHP\Database\Validation\Rules\Unique unique(string $table, ?string $column = null, mixed $ignore = null)
*/
abstract class Rule extends DimtrovichRule
{
Expand Down