mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-24 03:29:23 +02:00
29 lines
457 B
PHP
29 lines
457 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Components\Fields;
|
|
|
|
use Filament\Forms\Components\TextInput;
|
|
|
|
/**
|
|
* Class Slug.
|
|
*/
|
|
class Slug extends TextInput
|
|
{
|
|
/**
|
|
* Initial setup for the field.
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->required();
|
|
$this->maxLength(192);
|
|
$this->unique(ignoreRecord: true);
|
|
$this->alphaDash();
|
|
}
|
|
}
|