clrghouz/app/Models/Tearline.php

23 lines
345 B
PHP
Raw Permalink Normal View History

2024-06-03 09:08:40 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
2024-11-04 07:25:49 +00:00
use App\Models\Casts\UTF8StringOrNull;
2024-06-03 09:08:40 +00:00
class Tearline extends Model
{
//use HasFactory;
public const UPDATED_AT = NULL;
protected $casts = [
'value' => UTF8StringOrNull::class,
];
2024-06-03 09:08:40 +00:00
public function complete(): string
{
return sprintf('--- %s',$this->value);
}
}