Illuminate\Database\Eloquent\Model::setConnection PHP Method

setConnection() public method

Set the connection associated with the model.
public setConnection ( string $name )
$name string
    public function setConnection($name)
    {
        $this->connection = $name;
        return $this;
    }
Model