https and sms job add

This commit is contained in:
Devit
2026-03-28 23:15:36 +05:00
parent fb03d05de9
commit c02f5d5bf8
6 changed files with 266 additions and 1 deletions

25
app/Models/EskizToken.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class EskizToken extends Model
{
use HasFactory;
protected $fillable = ['token', 'expires_at'];
protected $dates = ['expires_at'];
/**
* Token amal qiladimi?
*/
public function isValid(): bool
{
return $this->expires_at && Carbon::now()->lt($this->expires_at);
}
}