2'</span>=&gt;<span class="hljs-string">'required|string|max:100'</span>,
            <span class="hljs-string">'rlay_3'</span>=&gt;<span class="hljs-string">'required|string|max:100'</span>,
            <span class="hljs-string">'rlay_4'</span>=&gt;<span class="hljs-string">'required|string|max:100'</span>,
            <span class="hljs-string">'text'</span>=&gt;<span class="hljs-string">'required|string|max:100'</span>,
        ]);
        $sensor_request = $request-&gt;all();
        $sensor-&gt;update($