/** * Display a listing of the resource. * GET /sensors * * @return Response */ public function index() { $sensors = Sensor::get(); return View::make("sensors", ['sensors' => $sensors]); }