I am starting with a new multi-tenant applicaiton, i followed this as guide http://fideloper.com/laravel-multiple-database-connections.
So in my model i have
class Manufacturer extends Model
{
protected $connection = 'secondDB';
...
}
I know i can query the second database like this:
$users = DB::connection('secondDB')->select(...);
But how do i query the model? This doesn't work:
Manufacturer::create($attributes);