Yes, you can define which database the model should use by defining the $connection property.
class MyModel extends Eloquent {
protected $connection = '<connection>';
protected $table = "<table>";
public function related()
{
return $this->belongsTo('...');
}
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community