• File: DadosSolicitante.php
  • Full Path: /var/www/imaliapitest/app/DadosSolicitante.php
  • Date Modified: 05/19/2025 4:29 PM
  • File size: 737 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace App;

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

class DadosSolicitante extends Model
{
    use HasFactory;

    protected $fillable = [
        'name',
        'father_name',
        'mother_name',
        'marital_status',
        'marital_name',
        'phone',
        'alternative_phone',
        'nuit',
        'identity_number',
        'province_id',
        'quarter',
        'address',
        'business_accounts_id',

        'agregado_familiars_id',
        'despesa_mensals_id'

    ];

    public function bensGarantia()
    {
        return $this->belongsToMany('App\BemGarantia', 'users_bens', 'dados_solicitantes_id', 'bem_garantias_id');
    }
}