<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\Clinica;
use App\Exports\RegistrosExport;
use Maatwebsite\Excel\Facades\Excel;

class ClinicaController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function exportar_registros()
    {

        return Excel::download(new InvoicesExport, 'invoices.xlsx');
    }
   
}
