Skip to content

DatasetMissing error when using a function inside with #546

Answered by owenvoke
HassanZahirnia asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like you're calling \Hashids with a static method, so I'm assuming you've aliased this class as a facade? It's very likely that this is throwing an error or exception, which means the dataset can't be resolved.

In your case, assuming it's a facade, the container hasn't been bound at this point, so you could either resolve it as you've already done (but provide a name for the dataset entry), or use Bound Datasets.

I'm wondering if we could maybe catch exceptions in dataset resolution and provide a cleaner / more helpful error message, as I too experienced this the other day.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@HassanZahirnia
Comment options

@owenvoke
Comment options

@HassanZahirnia
Comment options

Answer selected by HassanZahirnia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants