app/Http/Requests/UpdateLink.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'input_url' => ['required', 'string', 'unique:links,input_url'],
            'output_url' => ['required', 'string'],
        ];
    }
public function rules ( ) { return [ 'input_url' => [ 'required' , 'string' , 'unique:links,input_url' ] , 'output_url' => [ 'required' , 'string' ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .