diff --git a/app/Http/Requests/TunnelRequest.php b/app/Http/Requests/TunnelRequest.php new file mode 100644 index 0000000..2c07744 --- /dev/null +++ b/app/Http/Requests/TunnelRequest.php @@ -0,0 +1,30 @@ +route('tunnel'); + + return $tunnel->user_id === $this->user()->id; + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules(): array + { + return [ + // + ]; + } +}