23 lines
345 B
PHP
23 lines
345 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use App\Models\Casts\UTF8StringOrNull;
|
|
|
|
class Tearline extends Model
|
|
{
|
|
//use HasFactory;
|
|
|
|
public const UPDATED_AT = NULL;
|
|
|
|
protected $casts = [
|
|
'value' => UTF8StringOrNull::class,
|
|
];
|
|
|
|
public function complete(): string
|
|
{
|
|
return sprintf('--- %s',$this->value);
|
|
}
|
|
} |