Files
panel/app/Models/TaskLog.php

31 lines
624 B
PHP
Raw Normal View History

<?php
2016-12-07 22:46:38 +00:00
2024-03-12 22:39:16 -04:00
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class TaskLog extends Model
{
/**
* The table associated with the model.
*/
protected $table = 'tasks_log';
/**
* Fields that are not mass assignable.
*/
protected $guarded = ['id', 'created_at', 'updated_at'];
2024-03-19 21:08:49 -04:00
protected function casts(): array
{
return [
'id' => 'integer',
'task_id' => 'integer',
'run_status' => 'integer',
'run_time' => 'datetime',
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
}
}