This commit is contained in:
2023-11-24 18:31:58 +05:00
parent 35c6e580ca
commit 206582e195
7 changed files with 272 additions and 7 deletions

View File

@@ -4,10 +4,64 @@ namespace App\Models\Order\Loan;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class LoanOrder extends Model
{
use HasFactory;
use SoftDeletes;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'unique_id',
'loan_type',
'region',
'branch_id',
'customer_name',
'customer_surname',
'customer_patronic_name',
'passport_address',
'real_address',
'passport_serie',
'passport_id',
'passport_given_at',
'passport_given_by',
'born_place',
'born_at',
'email',
'phone',
'phone_additional',
'phone_home',
'work_region',
'work_province',
'work_company',
'work_company_accountant_number',
'work_started_at',
'work_salary',
'work_position',
'education',
'marriage_status',
'passport_one',
'passport_two',
'passport_three',
'passport_four',
'filled_by',
'user_id',
'status',
'status_reason',
'notes',
];
/**
* Loan type
*/
public function loanType(): BelongsTo
{
return $this->belongsTo(LoanType::class);
}
}