/** * Initialize the content section with dependencies * @param EntryRepositoryInterface $repository * @param ChannelRepositoryInterface $channelRepository */ public function __construct(EntryRepositoryInterface $repository, ChannelRepositoryInterface $channelRepository) { $this->repository = $repository; $this->channelRepository = $channelRepository; $this->channel = Route::adminChannel(); View::share('channel', $this->channel); View::share('meta_title', 'Content / ' . ucfirst($this->channel->name)); }