)</span>
    </span>{
        <span class="hljs-keyword">return</span> <span class="hljs-keyword">$this</span>-&gt;hasMany(<span class="hljs-string">'App\HistorialSensor'</span>,<span class="hljs-string">'sensor_id'</span>);
    }
}
</code></pre>
<p><a name="controllers"></a></p>
<h2 id="controlador">Controlador</h2>
<p>Comando <code>php artisan make:controller Sensor</code> ejecutar en consola dentro del proyecto.</p>
<blockquote>
<p>{info} Directorio  <code>app/Http/Controllers/SensorController.php</code>