79400669

Date: 2025-01-30 17:10:19
Score: 0.5
Natty:
Report link

Found the issue! It was a type error in my Course.php model:

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Course extends Model
{
    use HasFactory;

    protected $fillable = [
        'classdescr',
        'classmeetinginfo',
        'associatedclass',
        'classattributes',
        'prereqs',
        'description',
        'instructor',
        'reqsfulfilled',
        'quartersoffered',
        'gradingpercent',
        'difficulty',
        'hrsperwk',
        'subject',
    ];

    protected $casts = [
        'classdescr' => 'json',
        'classmeetinginfo' => 'json',
        'associatedclass' => 'json',
        'classattributes' => 'json',
        'prereqs' => 'json',
        'reqsfulfilled' => 'json',
        'quartersoffered' => 'json',
        'gradingpercent' => 'json',
        'difficulty' => 'float', // was 'decimal'
        'hrsperwk' => 'integer', 
    ];
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: JBell