Может кто-нибудь объяснить мне, почему ошибка выброса части контроллера?
Вот моя МОДЕЛЬ:
class Suitspecialist extends Authenticatable
{
use Notifiable;
protected $guard = 'suitspecialist';
protected $fillable = [
'name', 'email', 'password',
];
protected $hidden = [
'password', 'remember_token',
];
}
CONTROLLER
Эта часть выдает ошибку
Добавьте [name] к заполняемому свойству, чтобы разрешить массовое присвоение [App \ Suitspecialist].
protected function createSuitspecialist(Request $request)
{
$this->validator($request->all())->validate();
Suitspecialist::create([
'name' => $request->name,
'email' => $request->email,
'password' => Hash::make($request->password),
]);
return redirect()->intended('login/suitspecialist');
}