working on loan orders

This commit is contained in:
2023-11-23 18:28:24 +05:00
parent 83cc460638
commit 5e35dd6a11
14 changed files with 336 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Models\Order\Loan;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class LoanOrder extends Model
{
use HasFactory;
use SoftDeletes;
}

View File

@@ -0,0 +1,33 @@
<?php
namespace App\Models\Order\Loan;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\Translatable\HasTranslations;
class LoanType extends Model
{
use HasFactory;
use HasTranslations;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'name',
'tax',
'maturity',
'notes',
'active',
];
/**
* Translatable fields
*
* @var array<string>
*/
public $translatable = ['name', 'notes'];
}