<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class HistoricoCaixa extends Model
{
    use HasFactory;
    protected $table="historicoscaixas"; 
    protected $fillable = ['caixa_id','codigo','acontecimento','usuario_id'];


    public function getUser()
    {
        return $this->belongsTo(User::class, 'usuario_id', 'id');
    }
}
