File manager - Edit - /var/www/html/portalHomolog/app/Models/ConselhosMunicipais/Conselho.php
Back
<?php namespace App\Models\ConselhosMunicipais; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; use DateTimeInterface; class Conselho extends Model { protected $connection = 'mysql'; public $incrementing = false; protected $keyType = 'string'; protected $fillable = [ 'id','created_at','updated_at', 'slug','structure_id','nome','telefone','email', 'informacoes','transparencia','foto','status' ]; public static function boot() { parent::boot(); static::creating(function ($model) { $model->id = Str::uuid(); }); } protected function serializeDate(DateTimeInterface $date) { return $date->format('Y-m-d H:i:s'); } public function endereco() { return $this->hasOne(\App\Models\Endereco::class, 'owner_id', 'id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings