table counts added

This commit is contained in:
Benjamin Takats
2022-12-01 22:42:49 +01:00
parent e47ccf7308
commit 791cab77b9
7 changed files with 43 additions and 8 deletions

View File

@@ -42,4 +42,9 @@ class Venue extends Model
{
return $this->belongsTo(City::class);
}
public function events(): \Illuminate\Database\Eloquent\Relations\HasMany
{
return $this->hasMany(Event::class);
}
}