Category : multi-tenant

Here is the test case that i created for category testing. I am getting 404 on this route while i have correctly configured the tenant test case and this route is exist on subdomain that was created on chrome browser. public function test_example() { $response = $this->call(‘GET’, ‘/categories/6/edit’); $this->assertEquals(200, $response->getStatusCode(),$response->exception->getMessage()); } My TestCase.php protected $tenancy ..

Read more

Laraval Multi-Tenancy Passport API : No Database Selected while applying the php artisan passport:install command to generate OAuth_Client Getting the error as … PDOException::("SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected") 2 C:wamp64wwwvaistraproductsVSMSvendorlaravelframeworksrcIlluminateDatabaseConnection.php:458 PDO::prepare("insert into `oauth_clients` (`user_id`, `name`, `secret`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?, ?, ?, ?)") ..

Read more

I’m starting to learn using this https://tenancyforlaravel.com/docs/v3/quickstart/. So far I’ve managed to follow the tutorial. I can access http://foo.something.test/ using, Route::get(‘/’, function () { return ‘This is your multi-tenant application. The id of the current tenant is ‘ . tenant(‘id’); }); However, if I define a simple controller which return a view, Route::get(‘/foos’, ‘[email protected]’); I ..

Read more

I’m currently using Spatie/Laravel-multitenancy and when going on the master domain it loads welcome as normal but when going on a subdomain it spits out: "The request expected a current tenant but none was set." My web.php file looks like this: Route::domain(‘{domain}.localhost’)->middleware(‘tenant’)->group(function (){ Route::get(‘/’, function ($tenant){ return $tenant; }); }); Help! Sourc..

Read more

i am using package for multi-tenant multi tenant for spatie my system have that : every user has it’s own database and subdomain, i need when the user login in main domain and redirect to it’s subdomain keep logged in. i have tried config([‘session.domain’=>’.example.com’]); and config([‘session.domain’=>’*.example.com’]); and i set the config session itself and set ..

Read more

im making a multitenancy system and i have a problem with a login/register in main domain. im using spatie multitenancy ex: shop1.domain.com shop2.domain.com domain.com in shop1 and shop2 can login and register ONLY if have in their databases the "users" table. but im using the tenancy table to save all users data. namespace AppModels; use ..

Read more

I am using the Stancl/TenancyforLaravel tenancy system. I have created a model and migration called PaymentSettings for both tenants and central domain users. For central Users = appModelsSystemAdminPaymentSettings.php For tenants users = appModelsTenantAdminPaymentSettings.php I have added the crud operation which is running absolutely fine. I am facing the challenge while setting up the stripe API ..

Read more

Morning! I’m programming a laravel 7 multitenancy project using hyn package version 5.6 For now i have a principal app (localhost) and a subdomain (tecnotienda.localhost). But when i route them it ussually overlaps, i mean: it just shows the principal or just shows the subdomain. This is my routes/web.php <?php use IlluminateSupportFacadesRoute; use AppHttpControllersReportController; /* ..

Read more

Can anyone please help on this. Tenanti Version: ^5.0 Laravel Version: 7.x PHP Version: 7.4 Database Driver & Version: mysql-5.7.31 Description: When I install tenanti version getting an error in service provider. IlluminateContractsContainerBindingResolutionException Unable to resolve dependency [Parameter #1 [ array $config ]] in class AppProvidersAppServiceProvider Steps To Reproduce: "orchestra/tenanti": "^5.0", In appServiceProvider page added ..

Read more

This is for Laravel 8.x with Jetstream/Livewire scaffold having Stancl/Tenancy. The initialization of tenant models or session settings not working right. Either I did not do it right or inbuilt problem. The entire package was built as per instructions of Stencl/tenancy v3.x. I can see the dd(AppUser::all()) as per code outlined below Route::middleware([ ‘web’, InitializeTenancyByDomain::class, ..

Read more

I am trying to install the hyn/multi-tenant package in a Laravel 8 project. However when executing the composer require hyn/multi-tenant command, the following error is shown: Problem 1 – Installation request for laravel/framework (locked at v8.11.2, required as ^8.0) -> satisfiable by laravel/framework[v8.11.2]. – hyn/multi-tenant 5.6.0 requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev]. – hyn/multi-tenant ..

Read more