This commit is contained in:
DigitalInfinity committed 2026-06-02 17:11:39 +00:00
1 parent 00bcaa2b93
commit 1559580ceb
37 files changed
+211 -162

No files matched your search

+2 -2
View File
@@ -7,10 +7,10 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
class Kid extends Model
{
protected $fillable = ["name", "email"];
protected $fillable = ['name', 'email'];
public function courses(): BelongsToMany
{
return $this->belongsToMany(Course::class)->withPivot("date");
return $this->belongsToMany(Course::class)->withPivot('date');
}
}