ekart/backend/app/Models/PaymentStatus.php
kusowl 2aa76db042 feature: implement payment gateway
- implement stripe checkout gateway
- add payment gateway factory and service
2026-03-23 17:29:24 +05:30

23 lines
364 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @mixin IdeHelperPaymentStatus
*/
class PaymentStatus extends Model
{
public $timestamps = false;
protected $fillable = [
'name',
];
public static function getIdByName(string $name): ?int
{
return static::where('name', $name)->value('id');
}
}