我的 laravel 有问题 我无法发布数据
一个错误说
InvalidArgumentException in Validator.php line 2593:
Validation rule unique requires at least 1 parameters.
这是我的代码
public function postUbah(Request $request, $id)
$validator = Validator::make($request->all(), [
'username' => 'required|unique:user|min:5',
'name' => 'required',
'group' => 'required'
]);
}
谢谢您的帮助。
这是我的模型
class User extends Model implements AuthenticatableContract, CanResetPasswordContract {
use Authenticatable, CanResetPassword;
protected $table = 'user';
protected $fillable = ['username', 'password'];
protected $hidden = ['password', 'remember_token'];