<?php

use Illuminate\Database\Eloquent\Model as Eloquent;

class Clientes extends Eloquent

{

   /**
   * The attributes that are mass assignable.
   *
   * @var array
   */

   protected $fillable = [
       'idcliente',
        'nombreleg',
        'nombrecom',
        'nombre1',
        'nombre2',
        'apellido1',
        'apellido2',
        'nit',
        'dui',
        'mh_departamento',
        'mh_municipio',
        'cod_actividad',
        'activo',
        'registro',
        'contacto',
        'tel1residencia',
        'dirresidencia',
        'email',
        'tipopersona',
        'exento'

   ];

   /**
   * The attributes that should be hidden for arrays.
   *
   * @var array
   */

   protected $hidden = [

       'password', 'remember_token',

   ];

   /*
   * Get Todo of User
   *
   */

   public function todo()

   {
       return $this->hasMany('Todo');

   }

 }