Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how the Environment works as easy proxy #273

Closed
luceos opened this issue Oct 10, 2017 · 1 comment
Closed

Document how the Environment works as easy proxy #273

luceos opened this issue Oct 10, 2017 · 1 comment

Comments

@luceos
Copy link
Contributor

luceos commented Oct 10, 2017

$tenancy = app(Hyn\Tenancy\Environment::class);

// get website
$tenancy->website();
// get hostname
$tenancy->hostname();
// get customer (if any)
$tenancy->customer();
// set hostname
$hostname = Hostname::firstOrFail();
$tenancy->hostname($hostname);
@luceos
Copy link
Contributor Author

luceos commented Oct 31, 2017

Include the Tenancy facade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant