77 lines
1.5 KiB
PHP
77 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class ClienteDomicilio extends Model
|
|
{
|
|
|
|
use SoftDeletes;
|
|
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'clientes_domicilios';
|
|
|
|
/**
|
|
* The table primary key.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $primaryKey = 'id';
|
|
|
|
/**
|
|
* The attributes that should be casted to native types.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [];
|
|
|
|
/**
|
|
* Indicates if the primary key is autoincrement.
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $incrementing = true;
|
|
|
|
/**
|
|
* Indicates if the model should be timestamped.
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $timestamps = true;
|
|
|
|
/**
|
|
* The attributes that should be filleable for arrays.
|
|
*
|
|
* @var array
|
|
*
|
|
* $guarded = [] or $filleable = []
|
|
*/
|
|
|
|
protected $guarded = [];
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
|
|
protected $fillable = [
|
|
'cliente_id', 'nombre_sucursal', 'numero_sucursal', 'nombre_responsable_sucursal', 'calle', 'entre_calles', 'num_ext', 'num_int', 'colonia', 'ciudad', 'cp', 'telefono', 'celular_responsable', 'lat', 'lng', 'email', 'nombre_croquis'
|
|
];
|
|
|
|
/**
|
|
* The attributes that should be hidden for arrays.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $hidden = [
|
|
//
|
|
];
|
|
}
|