mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-31 11:08:59 +02:00
22 lines
413 B
PHP
22 lines
413 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Components\Fields;
|
|
|
|
use App\Filament\StateCasts\UriStateCast;
|
|
use Filament\Forms\Components\TextInput as BaseTextInput;
|
|
|
|
class TextInput extends BaseTextInput
|
|
{
|
|
/**
|
|
* Set the field to be a URI input.
|
|
*/
|
|
public function uri(): static
|
|
{
|
|
return $this
|
|
->stateCast(app(UriStateCast::class))
|
|
->url();
|
|
}
|
|
}
|