File manager - Edit - /var/www/html/portal/app/Models/OccurrencesImages.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\Notifiable; use Laravel\Sanctum\HasApiTokens; use Illuminate\Support\Str; use DateTimeInterface; class OccurrencesImages extends Model { use HasApiTokens, HasFactory, Notifiable; protected $connection = 'mysql_sgu'; protected $table = 'occurrence_images'; const CREATED_AT = 'created_at'; const UPDATED_AT = 'updated_at'; protected $fillable = [ 'id', 'image_url', 'name', 'occurrence_id', 'created_at', 'updated_at', ]; protected function serializeDate(DateTimeInterface $date) { return $date->format('Y-m-d H:i:s'); } public function occurrence() { return $this->belongsTo(Occurrences::class, 'occurrence_id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.09 |
proxy
|
phpinfo
|
Settings