mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
table counts added
This commit is contained in:
@@ -44,4 +44,14 @@ class City extends Model
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
|
||||
public function venues(): \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
{
|
||||
return $this->hasMany(Venue::class);
|
||||
}
|
||||
|
||||
function events()
|
||||
{
|
||||
return $this->hasManyThrough(Event::class, Venue::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user