+
+// Create a tenant
+$tenant = Tenant::new()
+ ->withDomains([
+ 'tenant1.yourapp.com',
+ 'tenant1.com',
+ ])->withPlan('free')
+ ->save();
-
-
-
-
-
-
Automatic multi-tenancy for your Laravel app.
- You won't have to change a thing in your application's code.
-
-
-
-
-
-
No model traits to change database connection
-
No replacing of Laravel classes (Cache, Storage, ...) with tenancy-aware classes
-
Built-in tenant identification based on hostname (including second level domains)
-
-
-
-
-
-
+// Write your app like you're used to
+Order::where('status', 'shipped')->get();
+Cache::get('order_count');
+asset('logo.png');
+dispatch(new SendOrderCreatedMail);
+