class Product extends Model{ use HasFactory, Multitenantable, Markable; public function favorites(): belongsToMany { return $this->belongsToMany(Markable::class); }}
class Product extends Model{ use HasFactory, Multitenantable, Markable; public function favorites(): belongsToMany { return $this->belongsToMany(Markable::class); }}
Ideally I have a resource called
FavoriteResource
FavoriteResource
which allows me to show all favorite products for that user.
Any idea how this can be done, given I did not create the model