Support the ongoing development of Laravel.io →
Session Database
Last updated 1 year ago.
0

Worked it out, need to use a constructer.

REF: http://stackoverflow.com/questions/20787621/use-session-in-elo...

protected $connection = 'default';
    
public function __construct() {
  parent::__construct();
  $this->connection = Session::get("location");
}

Next I'm going to incorporate something so the database names aren't recorded in plain text.

Thanks, Zac

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

zfarrugia zfarrugia Joined 23 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.