protected function getTableData()
	{
		$data = array();
		$form_input = $this->getFormInput();

		if( $form_input['table_name'] && $form_input['max_rows'] )
		{
			$connection_name = Config::get('laravel-import-export::baseconf.connection_name');
			$temp_data = DB::connection($connection_name)
				->table($this->form_input['table_name'])
				->select("*")
				->take($this->form_input['max_rows']);
			if( $temp_data->exists() )
			{
				$data = $temp_data->get();
			}
			else
			{
				throw new NoDataException;
			}
		}
		else
		{
			throw new \BadMethodCallException;
		}

		return $data;
	}