fix: regenerate models and add database
This commit is contained in:
@@ -26,6 +26,8 @@ use Illuminate\Database\Eloquent\Model;
|
||||
* @property Carbon $updated_at
|
||||
*
|
||||
* @property File $file
|
||||
* @property Collection|Comment[] $comments
|
||||
* @property Collection|Favorite[] $favorites
|
||||
* @property Collection|TourDate[] $tourDates
|
||||
*
|
||||
* @package App\Models
|
||||
@@ -57,6 +59,16 @@ class Tour extends Model
|
||||
return $this->belongsTo(File::class);
|
||||
}
|
||||
|
||||
public function comments()
|
||||
{
|
||||
return $this->hasMany(Comment::class);
|
||||
}
|
||||
|
||||
public function favorites()
|
||||
{
|
||||
return $this->hasMany(Favorite::class);
|
||||
}
|
||||
|
||||
public function tourDates()
|
||||
{
|
||||
return $this->hasMany(TourDate::class);
|
||||
|
||||
Reference in New Issue
Block a user