Здравствуйте. Делаю регистрацию через Fortify в Laravel. Есть форма:
<form action="" class="authorization-form" method="POST" action="{{ route('register') }}">
@csrf
<div class="inner-container">
<p class="text-center fs-2 fw-bold">Регистрация</p>
<div class="mt-3">
<label class="form-label" for="name">Имя</label>
<input type="text" class="form-control @error('name') is-invalid @enderror" name="name" id="name" placeholder="Mirosław" required autocomplete="name" autofocus>
@error('name')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="mt-3">
<label class="form-label" for="email">Email</label>
<input type="email" class="form-control @error('email') is-invalid @enderror" name="email" id="email" placeholder="Example@gmail.com" required autocomplete="email">
@error('name')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="mt-3">
<label class="form-label" for="phone">Номер телефона</label>
<input type="tel" class="form-control @error('phone') is-invalid @enderror" name="phone" id="phone" placeholder="+7 923 111 11 11" required autocomplete="phone">
@error('phone')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="mt-3">
<label class="form-label" for="password">Пароль</label>
<input type="password" class="form-control @error('password') is-invalid @enderror" name="password" id="password" placeholder="**********" required autocomplete="new-password">
@error('password')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="mt-3">
<label class="form-label" for="password-confirm">Подтвердить пароль</label>
<input type="password" class="form-control" name="password_confirmation" id="password-confirm" placeholder="**********">
</div>
<button type="submit" class="btn btn-dark w-100 mt-4 py-4 fs-5 rounded-pill">Zarejestrować</button>
</div>
</form>
Из всей этой формы в таблицу передается всё, кроме номера телефона.
Вот скрин таблицы с полями:
Модель User:
use Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable implements MustVerifyEmail
{
use HasApiTokens, HasFactory, Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'name',
'email',
'password',
'phone',
];
/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'email_verified_at' => 'datetime',
'phone' => 'string'
];
}
Что я мог упустить? Где что еще проверить?