classify admin

This commit is contained in:
Husanjonazamov
2026-02-24 12:52:01 +05:00
commit e0f1989655
769 changed files with 1263008 additions and 0 deletions

27
app/Models/NumberOtp.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class NumberOtp extends Model
{
use HasFactory;
protected $table = 'number_otps';
protected $fillable = [
'number',
'otp',
'expire_at',
'attempts'
];
public function setOtpAttribute($value) {
$this->attributes['otp'] = base64_encode($value);
}
public function getOtpAttribute($value) {
return base64_decode($value);
}
}