File "CronJob.php"
Full Path: /home/trinadezambia/public_html/gambling/app/Models/CronJob.php
File size: 412 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Models;
use App\Traits\GlobalStatus;
use Illuminate\Database\Eloquent\Model;
class CronJob extends Model
{
use GlobalStatus;
protected $casts = ['action'=>'array'];
public function schedule() {
return $this->belongsTo(CronSchedule::class,'cron_schedule_id');
}
public function logs() {
return $this->hasMany(CronJobLog::class,'cron_job_id');
}
}