File manager - Edit - /var/www/html/portalHomolog/app/Models/HtmlMenuLink.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; use DateTimeInterface; class HtmlMenuLink extends Model { public $incrementing = false; protected $keyType = 'string'; protected $table = 'html_menu_links'; const CREATED_AT = 'created_at'; const UPDATED_AT = 'updated_at'; protected $fillable = [ 'id', 'html_id', 'titulo', 'link', 'description', 'status', 'order', ]; public static function boot() { parent::boot(); static::creating(function ($model) { if (empty($model->id)) { $model->id = Str::uuid(); } }); } protected function serializeDate(DateTimeInterface $date) { return $date->format('Y-m-d H:i:s'); } public function html() { return $this->belongsTo(Html::class, 'html_id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings