Coder Social home page Coder Social logo

developeroncall / crudbooster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crocodic-studio/crudbooster

2.0 2.0 1.0 49.59 MB

This has been adapted to integrate Hyn/Multi-Tenant and make CRUDBooster multi-tenant application. You must use the branch 'multi-tenant'

PHP 15.04% JavaScript 57.94% CSS 10.81% HTML 16.21%

crudbooster's People

Contributors

924211739 avatar akktis avatar andreshg112 avatar atiko7-tomas avatar atmonshi avatar catfishseo avatar davodavodavo3 avatar developeroncall avatar esdayehezkiel avatar fherryfherry avatar franciscoluiz avatar furqon avatar harimayco avatar imanghafoori1 avatar jaydjohnson avatar jdredondo avatar joxper avatar kvn1234 avatar maurojunior2011 avatar nyel-gh avatar rikiarofiq avatar robodal avatar rperdomo avatar salihkiraz avatar sameerpanjwani avatar tomatoe45 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

tehuelche

crudbooster's Issues

How can multiple users signup and have their environments

Hi, I am just trying out this adaptation of crudbooster. I have set everything up and I am wondering how multi-tenancy is supported. I mean how can users signup and have their own environment which is separate from other users' both in terms of views and data since I suppose this is the main reason for multi-tenancy.
I also get this error when I run the app Database [tenant] not configured. How do I configure this
Thanks

Crudbooster Multi-tenant

Hi everyone.
I have a problem that i am trying to solve like 1 week for now, I don't know what can I do more so I am going to explain you every detail of my problem.
So I have a system that have a main login:
Company
E-mail
Password

When the login is successful, it redirects do crudbooster with the selected company database choosed on the login. My problem is that I can't change the database when it redirects do crudbooster, it looks like crudbooster is only reading .env file and ignoring all the code that I added to change database config.

`
DB::purge('tenant');

	config()->set('database.connections.tenant.host', $company->bd_hostname);
	config()->set('database.connections.tenant.database', $company->bd_database);
	config()->set('database.connections.tenant.username', $company->bd_username);
	config()->set('database.connections.tenant.password', $company->bd_password);

	DB::reconnect('tenant');



	Schema::connection('tenant')->getConnection()->reconnect();`

This is the code I add to change the database connection, it really works at the login page, I tried some dd(DB::getDatabaseName()) and it really changes by the company selected on the login.
The problem is when the user enters the crudbooster main screen, after login, it looks like crudbooster is ignoring every configuration set before and only reads .env file.

What I've done:
Installed multi-tenant;
Changed crudbooster.php file just like installation tells;
Changed config/database.php (tenant main db'
I migh't have done other changes that installation requires but I don't quite remember now.

I really need help with this if someone can help me.
Thank you so much.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.