feat: add favorites feature (model, controller, routes, view)
This commit is contained in:
@@ -74,4 +74,8 @@ class Tour extends Model
|
||||
{
|
||||
return $this->hasMany(TourDetail::class);
|
||||
}
|
||||
public function favorites()
|
||||
{
|
||||
return $this->morphMany(Favorite::class, 'favoritable');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user