Merkez validations

This commit is contained in:
2023-11-28 20:35:01 +05:00
parent af9afd5113
commit 5b32575929
6 changed files with 72 additions and 41 deletions

View File

@@ -3,6 +3,8 @@
namespace App\Nova\Resources;
use App\Nova\Resource;
use App\Rules\DowranAgaAllowed;
use App\Rules\OnlyLetters;
use Illuminate\Http\Request;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Text;
@@ -45,12 +47,11 @@ class Test extends Resource
return [
ID::make()->sortable(),
Text::make('phone'),
// NovaInputmask::make('Phone', 'phone')
// ->mask('+(\\9\\93)-69-99-99-99')
// ->storeRawValue(),
NovaInputmask::make(__('Phone'), 'phone')
->mask('+(\\9\\93)-99-99-99-99')
->storeRawValue()
->size('w-1/4')
->rules('required', 'integer', 'between:61000000,65999999'),
];
}