class BaseRepo
{
- protected $tagRepo;
- protected $imageRepo;
+ protected TagRepo $tagRepo;
+ protected ImageRepo $imageRepo;
public function __construct(TagRepo $tagRepo, ImageRepo $imageRepo)
{
if (isset($input['tags'])) {
$this->tagRepo->saveTagsToEntity($entity, $input['tags']);
+ $entity->touch();
}
$entity->rebuildPermissions();