clrghouz/app/Models/Origin.php

23 lines
402 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\Casts\UTF8StringOrNull;
class Origin extends Model
{
//use HasFactory;
public const UPDATED_AT = NULL;
protected $casts = [
'value' => UTF8StringOrNull::class,
];
public function complete(Address $o): string
{
return sprintf(' * Origin: %s (%s)',$this->value,$o->point_id ? $o->ftn4d : $o->ftn3d);
}
}