public function __construct(CategoryRepositoryInterface $repository) { $this->categories = $repository; }