Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace sisVentas;
- use Illuminate\Database\Eloquent\Model;
- class Cliente extends Model
- {
- protected $table='cliente';
- protected $primaryKey= "id_cli";
- //Laravel puede agregar dos columnas que indiquen cuando se agregaron y modificaron valores.
- //Para que eso ocurra, colocar true en vez de false
- public $timestamps = false;
- protected $fillable=[
- 'nombre_cli',
- 'apellido_cli',
- 'empresa_cli'
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement