23 lines
364 B
PHP
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');
|
|
}
|
|
}
|