This commit is contained in:
2025-07-04 19:00:47 +05:00
parent cfcfdefc36
commit 1746ba4a60
4 changed files with 39 additions and 11 deletions

View File

@@ -94,4 +94,15 @@ class LoanPaidOffLetterOrder extends Model
{
return $this->belongsTo(Branch::class, 'branch_id');
}
/**
* "boot" method for model
*/
protected static function boot()
{
parent::boot();
static::creating(LoanOrderRepo::creating());
static::created(LoanOrderRepo::created());
}
}

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Modules\VisaMasterPaymentOrder\Controllers;
use App\Http\Controllers\Controller;
class VisaMasterPaymentOrderController extends Controller
{
public function index()
{
}
}

View File

@@ -118,17 +118,6 @@ class LoanPaidOffLetterOrder extends Resource
return $query->where('user_id', $request->user()->id);
}
/**
* After resource created
*
* @param \Laravel\Nova\Http\Requests\NovaRequest $request
* @param \Illuminate\Database\Eloquent\Model $model
*/
public static function afterCreate(NovaRequest $request, Model $model): void
{
$model->update(['unique_id' => CardOrderRepo::fillUniqueId($model)]);
}
/**
* Get the fields for index.
*