File manager - Edit - /var/www/html/portalHomolog/app/Models/Cultura/Credenciamento/DocumentoCredenciamento.php
Back
<?php namespace App\Models\Cultura\Credenciamento; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; use DateTimeInterface; class DocumentoCredenciamento extends Model { protected $connection = 'mysql'; public $incrementing = false; protected $keyType = 'string'; protected $table = 'documentos_credenciamento'; const CREATED_AT = 'created_at'; const UPDATED_AT = 'updated_at'; protected $fillable = [ 'id', 'musico_id', 'tipo_documento', 'arquivo_url', 'status', 'observacao', 'avaliador_id', 'data_avaliacao', 'created_at', 'updated_at', ]; protected $casts = [ 'data_avaliacao' => 'datetime', ]; public function musico() { return $this->belongsTo(Musico::class); } public function avaliador() { return $this->belongsTo(\App\Models\User::class, 'avaliador_id'); } public static function boot() { parent::boot(); static::creating(function ($model) { if (empty($model->id)) { $model->id = (string) Str::uuid(); } }); } protected function serializeDate(DateTimeInterface $date) { return $date->format('Y-m-d H:i:s'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings