<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Member extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'first_name', 'last_name','rangos_eclesiastico_id'
    ];

    public function rango()
    {
        return $this->belongsTo('App\RangosEclesiastico', 'rangos_eclesiastico_id', 'id');
    }
}