<?php

namespace App\Http\Controllers;

use App\Models\Persona;
use Illuminate\Http\Request;

class PersonasController extends Controller
{
    //

    public function index()
    {
        $personas = Persona::all();
        $metadatos = [
            'title' => 'Personas',
            'description' => 'Listado de personas',
            'routes_key' => 'personas',
            // 'keywords' => 'personas, listado, personas',
            // 'robots' => 'index, follow',
            // 'author' => 'Jorge Luis'
        ];
        return view('persona.index', compact('personas', 'metadatos'));
    }
}
