Skip to content

Http client to fetch collection items from a remote source #710

Discussion options

You must be logged in to vote

When looking into the torchlight/torchlight-jigsaw package, I found the missing piece of cake to be able to use the Http facade.

// Set the root if it doesn't exist yet.
if (!Facade::getFacadeApplication()) {
    Facade::setFacadeApplication($this->container);
}

Adding this into bootstrap.php allows to use the Laravel Facade directly.

Replies: 1 comment 3 replies

Comment options

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

@michellaurent
Comment options

Answer selected by bakerkretzmar
@bakerkretzmar
Comment options

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