'require|alphaNum|max:20', ]; protected $message = [ 'symbol.require' => '币种不能为空', 'symbol.alphaNum' => '币种格式错误', 'symbol.max' => '币种格式错误', ]; public function sceneFavorite() { return $this->only(['symbol']); } }