route('host'); // 检测是否是自己的主机 return $host->user_id == auth()->id(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ // ]; } }