Comments (2)
Hi @ashokgelal
Yes, change it in the createFrom function.
public static function createFrom($name, $email)
{
// Create a Customer
$customer = new Customer;
$customer->name = $name;
$customer->email = $email;
app(CustomerRepository::class)->create($customer);
// Associate the customer with a website
$website = new Website;
$website->uuid = $name;
$website->customer_id = $customer->id;
app(WebsiteRepository::class)->create($website);
// Associate the website with a hostname
$hostname = new Hostname;
$baseUrl = config('app.url_base');
$hostname->fqdn = "{$name}.{$baseUrl}";
$hostname->customer_id = $customer->id;
$hostname->website_id = $website->id;
app(HostnameRepository::class)->attach($hostname, $website);
app(Environment::class)->hostname($hostname);
$admin = static::makeAdmin($name, $email, str_random());
return new Tenant($customer, $website, $hostname, $admin);
}
And my version numbers are
"hyn/multi-tenant": "^5.0",
"laravel/framework": "5.5.*",
Thanks!!
from townhouse.
Interesting! I didn't have to change a thing. Where did you change it? Also, can you please check the version number of "hyn/multi-tenant" and "laravel/framework" in your composer.json file for me?
from townhouse.
Related Issues (20)
- Can't access main domain or any of the sub domains on Ubuntu. HOT 8
- How to make it support external websites/domains HOT 1
- Database [tenant] not configured. HOT 2
- The user and resetPassword migrations are not migrated HOT 11
- There are no commands defined in 'tenant' namespace HOT 4
- Middleware only in subdomain HOT 1
- Getting... "This site canβt be reached" HOT 8
- Failed asserting that exception of type "Illuminate\Database\QueryException" is thrown. HOT 2
- Submit reset password form refreshes page HOT 1
- Create Admin Portal For the multi tenant HOT 2
- How can i organise web.php routs and judge which tenant in controller for url 'boise.townhouse.dev/show' HOT 3
- Error while creating tenant
- MariaDB --error on command CreateTenant HOT 1
- New realease of tenancy (5.2 - no longer Customer model) HOT 5
- create tenant error HOT 4
- The response is not a view - ProfileTest.php HOT 3
- assets not loading
- i have error create apache conf in ubunu
- Question about custom domain tenants HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from townhouse.