with('translations')->andWhere(['id' => $id])->one()) { throw new NotFoundException('Page is not found.'); } return $page; } public function save(Page $page): void { if (!$page->save()) { throw new \RuntimeException('Saving error.'); } } public function remove(Page $page): void { if (!$page->delete()) { throw new \RuntimeException('Removing error.'); } } }