<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Dependencia extends Model
{
    use SoftDeletes;
    protected $table = 'dependencia';

    protected $dates = ['created_at','deleted_at','updated_at'];

    protected $fillable = [
        'nombre',
    ];

    public function dependencia()
    {
        return Dependencia::select(
            'dependencia.id as id',
            'dependencia.nombre as nombre');
    }
}
