by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Mior Muhammad Zaki
    @crynobone
    sorry, the documentation is lacking
    Zaffar Saffee
    @ZaffarSaffee_twitter
    Salam Zaki, I just need to ask you a couple of quickies regarding tenanti
    let me know when available
    documentation is not that helpful
    Yogesh Patel
    @roaringwaves
    @crynobone : Facing this issues after i change tenanti table - User to Company
    Argument 1 passed to App\Providers\EventServiceProvider::App\Providers{closure}() must be an instance of App\Models\Access\Company\Company, instance of App\Models\Access\User\User given
    Yogesh Patel
    @roaringwaves
    @crynobone Above issues seems to be resolved - But after login - Auth::User() - > Pointing to the main DB - How to fix this ?
    Mior Muhammad Zaki
    @crynobone
    @yogesh00809 I don't fully understand how you stucture auth so can't help you with that.
    Mior Muhammad Zaki
    @crynobone
    my only guess is session start before setting db connection
    Yogesh Patel
    @roaringwaves
    @crynobone : When use logs in session will be created and DB will switch. Now if we will use Auth::User() - It will show main DB cached data. How to use change it to new DB ? or How to refresh Auth ?
    MortenBerg
    @MortenBerg
    @Crynobone Hi! I was hoping you could help me with an issue I'm having. I'm using the standard laravel auth and trying to get it working with Tenanti. Similarly to @yogesh00809 , I am having trouble with Auth pointing to my main DB after login. I'm setting Tenanti::driver()->asDefaultConnection() in my AuthController on login, but Auth seems to change back as soon as I redirect.
    MortenBerg
    @MortenBerg
    I should probably add that my structure is as following: A database with company's, and a database for each of those company. Each company database has employees with a login(the class Auth tracks). I am trying to accomplish that Tenanti keeps track of which company database to use.
    Mior Muhammad Zaki
    @crynobone

    Tenanti::driver()->asDefaultConnection() in my AuthController

    this is way to late.

    it need to happen before/right after StartSession middleware. anything after auth ioc get resolved to check the current user is too late to change the database connection (because it already fetching from the main db)
    MortenBerg
    @MortenBerg
    Alright, thanks for the answer. I'll try moving it to middleware.
    Yogesh Patel
    @roaringwaves
    @crynobone : Hi, Do you have idea - How to create Blade directive in Laravel 4 ?
    Mior Muhammad Zaki
    @crynobone
    @yogesh00809 blade directive is only available starting from Laravel 5.1 (or was it 5.2)
    Yogesh Patel
    @roaringwaves
    @crynobone - Thanks
    Basheer
    @basherr
    ?
    anyone there?
    Gabriel Buzzi Venturi
    @gabrielbuzziv
    Hello, someone can help me with the multi tenant ?
    fstbraz
    @fstbraz
    Hi @gabrielbuzziv , I would like to help you, but I can't figure out how to use the studio to create backend routes
    The documentation it's a little bit confusing and incomplete.
    Mior Muhammad Zaki
    @crynobone
    @fstbraz what @gabrielbuzziv looking for is completely different from your requirement
    I'll answer your email by next week. on holiday right now @gabrielbuzziv
    Gabriel Buzzi Venturi
    @gabrielbuzziv
    @crynobone thanks a lot, have a nice holiday :D
    Gabriel Buzzi Venturi
    @gabrielbuzziv
    Hey guys, how can i seed database with artisan in tenant databases?
    Mior Muhammad Zaki
    @crynobone
    @gabrielbuzziv there's no seeding for tenant
    and to be honest seeding should be part of your migration
    Gabriel Buzzi Venturi
    @gabrielbuzziv
    Hmm, got it, no problem.
    @crynobone I still have a some doubts when i back from holiday please answer my email, so can i explain better what happen
    Yogesh Patel
    @roaringwaves
    @crynobone - I'd implemented Elixir. But custom path doesn't work. ex: <img src="public/assets/images/76c5f8e4-mountain-view-icon.png" alt="">
    It is adding two public- ex: public/public/assets/images/76c5f8e4-mountain-view-icon.png
    It works fine without elixir
    Any idea ?
    Sankar
    @sankar2389
    Hi, I tried tenanti (multi-tenant) using,
    https://github.com/basherr/laravel-multi-tenancy
    Aftr registration I got this following error, ErrorException in Route.php line 131:
    Argument 1 passed to Illuminate\Routing\Route::run() must be an instance of Illuminate\Http\Request, string given, called in C:\xampp\htdocs\lara_multi\vendor\laravel\framework\src\Illuminate\Routing\Router.php on line 724 and defined
    Basheer
    @basherr
    that has been fixed..
    Sankar
    @sankar2389
    @basherr thnx
    any tutorial for subdomain creation & routing for tenanti?
    Basheer
    @basherr
    @sankar2389 will update you regarding this week If I'm done..
    Sankar
    @sankar2389
    @basherr Hav u ever tried hyn/multi-tenant package?

    I referred in hyn that how it manages subdomain and I got this,

    <VirtualHost *:{{ $config->port->http or 80 }}>
    @if(isset($hostname))
    ServerAdmin webmaster{{ "@" . $hostname->hostname }}
    @else
    ServerAdmin webmaster{{ "@" . $hostnames->first()->hostname }}
    @endif

    @if(isset($hostname))
    ServerName {{ $hostname->hostname }}
    @else
    @foreach($hostnames->lists('hostname') as $i => $hostname)
    @if($i == 0)
    ServerName {{ $hostname }}
    @else
    ServerAlias {{ $hostname }}
    @endif
    @endforeach
    @endif

    Basheer
    @basherr
    not yet
    Sankar
    @sankar2389
    Do u think above mentioned way is a best or any suggestions?
    Basheer
    @basherr
    haven't configured such stuffs till now...
    Sankar
    @sankar2389
    K, waiting for ur commit :smile:
    Is this a good method of creating subdomains for tenant?