25 lines
483 B
PHP
Executable File
25 lines
483 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Historial_cuenta extends Model
|
|
{
|
|
use HasFactory;
|
|
protected $fillable = [
|
|
'historial_id',
|
|
'cuenta_id',
|
|
];
|
|
|
|
public function historial()
|
|
{
|
|
return $this->belongsTo(Historiale::class, 'historial_id');
|
|
}
|
|
public function cuenta()
|
|
{
|
|
return $this->belongsTo(Cuentas::class, 'cuenta_id');
|
|
}
|
|
}
|