'integer', 'adjustment' => 'integer', // change to 'decimal:2' if it's not an int ]; // Optional relationship public function classSection() { return $this->belongsTo(ClassSection::class, 'class_section_id'); } }