'integer', 'violations_included' => 'json', 'printed_at' => 'datetime', 'delivered_at' => 'datetime', ]; } public function student() { return $this->belongsTo(Student::class); } public function spThreshold() { return $this->belongsTo(SpThreshold::class, 'sp_threshold_id'); } public function generator() { return $this->belongsTo(User::class, 'generated_by'); } }