ublic</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">destroy</span><span class="hljs-params">(Sensor $sensor)</span>
    </span>{
        <span class="hljs-comment">//</span>
        $sensor-&gt;delete();
        <span class="hljs-comment">//return reditec('/sensor'-&gt;with('success','Sensor Eliminado Satisfactoriamente'));</span>
        toastr()-&gt;error(<span class="hljs-string">'Sensor eliminado'</span>);
        <span class="hljs-keyword">return