feat: add routes, model, controller and update related models relations
This commit is contained in:
@@ -100,4 +100,8 @@ class Tour extends Model
|
||||
{
|
||||
return $this->hasMany(Comment::class, 'tour_id');
|
||||
}
|
||||
public function favorites()
|
||||
{
|
||||
return $this->hasMany(Favorite::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user