/** * Display a listing of the resource. * * @return Response */ public function index() { $buildings = Building::with('resource')->get(); return $buildings; }