File manager - Edit - /var/www/html/portalHomolog/app/Models/SystemLog.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 SystemLog extends Model { use HasApiTokens, HasFactory, Notifiable; public $incrementing = false; protected $keyType = 'string'; protected $table = 'system_logs'; protected $connection = 'mysql'; const CREATED_AT = 'created_at'; const UPDATED_AT = 'updated_at'; protected $fillable = [ 'id', 'user_id', 'action', 'module', 'model', 'model_id', 'details', 'ip_address', 'user_agent', 'created_at', 'updated_at', ]; 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 user() { return $this->belongsTo(User::class, 'user_id', 'id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings