File manager - Edit - /var/www/html/portal/app/Models/Cultura/Credenciamento/ConvocacaoCredenciamento.php
Back
<?php namespace App\Models\Cultura\Credenciamento; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; use DateTimeInterface; class ConvocacaoCredenciamento extends Model { protected $connection = 'mysql'; public $incrementing = false; protected $keyType = 'string'; protected $table = 'credenciamento_convocacoes'; const CREATED_AT = 'created_at'; const UPDATED_AT = 'updated_at'; protected $fillable = [ 'id', 'evento_id', 'musico_id', 'data_convocacao', 'tipo', 'observacao', 'status', 'ordem', 'created_at', 'updated_at', ]; protected $casts = [ 'data_convocacao' => 'date', ]; public function evento() { return $this->belongsTo(CredenciamentoEvento::class, 'evento_id'); } public function musico() { return $this->belongsTo(Musico::class); } 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