authentication via username or phones

This commit is contained in:
2024-09-18 19:03:47 +05:00
parent c086feb6c0
commit f8194453eb
6 changed files with 33 additions and 94 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Modules\SberPaymentOrder\Models;
use App\Models\Branch\Branch;
use App\Repos\Order\Loan\LoanOrderRepo;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Spatie\MediaLibrary\HasMedia;
@@ -138,4 +139,14 @@ class SberPaymentOrder extends Model implements HasMedia
],
];
}
/**
* "boot" method for model
*/
protected static function boot(): void
{
parent::boot();
static::creating(LoanOrderRepo::creating());
}
}