37 lines
691 B
PHP
37 lines
691 B
PHP
<?php
|
|
|
|
namespace App\Modules\LoanOrder\Models;
|
|
|
|
use App\Models\Order\Loan\LoanOrder;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
use Spatie\Translatable\HasTranslations;
|
|
|
|
class LoanOrderRequiredDocs extends Model
|
|
{
|
|
use HasTranslations;
|
|
|
|
/**
|
|
* Table
|
|
*/
|
|
protected $table = 'loan_order_required_docs';
|
|
|
|
/**
|
|
* Translatable fields
|
|
*
|
|
* @var array<int, string>
|
|
*/
|
|
public $translatable = [
|
|
'name',
|
|
'value',
|
|
];
|
|
|
|
/**
|
|
* Loan orders
|
|
*/
|
|
public function loanOrders(): HasMany
|
|
{
|
|
return $this->hasMany(LoanOrder::class, 'loan_order_required_doc_id');
|
|
}
|
|
}
|