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 ..
Category : multi-tenant
At this moment i use the new version of Tenancy for Laravel tenancy.dev and i need to create new tables with the migration, but from the terminal i cant do it Can someone help me? Sourc..
i have a multi tenant app and most of the resources (css, fonts, images) are shared on every subdomain (tenant). The tenancy package that i’m using provides a global_asset() helper that is the same as laravel’s assset() helper but it won’t attach any tenant related info to the url. So let’s say that i’m on ..
good morning to everyone, I will comment on the situation to see if you can give me an idea … I am using Hyn Tenancy (Saas) and Spatie Permissions Currently I have the whole system working without problems and it is as follows: Users can log in to domain.com or sub1.domain.com or sub2.domain.com and from ..
Is on method respected on relations/ or even on nested relations? For example: User::on(‘conn1’)->with(‘sports’)->get(); or $u = User::on(‘conn1’)->where(‘id’, 1)->first(); $u->sports; Sourc..
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 (?, ?, ?, ?, ?, ?, ?, ?, ?)") ..
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 ..
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..
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 ..
i’m trying to develop a multi tenant, app in laravel, with multiple DBs and subdomains, so far i’m using the default user guard for authenticating in the main domain let’s say it’s example.com, it works fine, i’m also using a different guard for the subdomains, registration works fine, but the login seems to be broken, ..
I have used hyn-tenancy in my laravel project and I need to refresh all migration and run with seeder on particular website. I have used command php artisan tenancy:migrate:refresh –seed –website_id=4 it roll back and migrate all the migrations but it is showing error Class does not exist when seeding. So please help me out ..
I want to create an app, and currently, I’m in the planning stage. There is something that I can’t figure out. I hope I will get some hints from you. My plan is to create packages for each part of my app and combine them based on the tenant’s subscription plan to construct the tenant’s ..
I develop a multitenant SaaS app and integrate a Bootstrap theme. All fine, but when I change root views for tenants and copy the same theme on tenant views folder for editing them, not load the boxicons from the public css folders. Any idea about this? Sourc..
I am trying to test the new version of Tenancy 1.X in laravel, but I don’t understand how to insert data after creating a Tenant database I mean in the same function I understand that the function in charge of creating is: Created :: class, Someone use this version? Sourc..
Description Is there any way to switch the DB environment in Stancl/Tenancy module? As I earlier worked with some other tenancy modules, I use to switch the environment when I want to access some resources from the central domain inside the tenants and vice versa. Why this should be added I was trying to get ..
I’m working on a Laravel app that requires multi-tenancy and I need some advice, the app is basically gonna be an ERP, so the data has to be separated by company, however, not only each company will be able to have many users, but each user will be able to have many companies as well, ..
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 ..
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 ..
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; /* ..
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 ..
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, ..
I have been able to set-up a new Laravel 8.x with Jetstream/Livewire scaffold with Stancl/Tenancy, by following the published docs. I can see the dd of users table upon going to domain page ex. "rtfs.abcd.com" where rtfs is the tenant. Now if I want to login into it, how does one define routes to login ..
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 ..
I’m attempting to use UUID’s for my user ID’s in Laravel and to support this I need to modify a vendor migration (in this case the Voyager admin panel) to change the user id type. Is there a way to do this? Sourc..
I have a multi-tenant setup which allows each tenant to save their own SMTP information in a settings table. The job being saved right now is being sent to the system database instead of the tenant. This is causing an issue as a Service Provider is setup to configure the mail configuration on boot() to ..