private function connection($connection): string
    {
        $this->connection = !is_null($connection) ? $connection : env('DEFAULT_DATABASE');
        if (!$this->connection) {
            throw new SimplesRunTimeError(
                "There is no `connection` to be used. Check .env file or configure the model property"
            );
        }
        return $this->connection;
    }
private function connection($connection): string
    {
        $this->connection = !is_null($connection) ? $connection : env('DEFAULT_DATABASE');
        if (!$this->connection) {
            throw new SimplesRunTimeError(
                "There is no `connection` to be used. Check .env file or configure the model property"
            );
        }
        return $this->connection;
    }
private function connection ( $ connection ) : string { $ this -> connection = ! is_null ( $ connection ) ? $ connection : env ( 'DEFAULT_DATABASE' ) ; if ( ! $ this -> connection ) { throw new SimplesRunTimeError ( "There is no `connection` to be used. Check .env file or configure the model property" ) ; } return $ this -> connection ; }
Parse the connection name and choose a source to it
@param $connection
@return string
@throws SimplesRunTimeError
Parse the connection name and choose a source to it