<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>microservice Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/microservice/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/microservice/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:34:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to create manual pagination with search filter in Laravel API?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-create-manual-pagination-with-search-filter-in-laravel-api/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-create-manual-pagination-with-search-filter-in-laravel-api/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Wed, 07 Jul 2021 04:36:42 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[manual filter]]></category>
		<category><![CDATA[microservice]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[search filter]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6683</guid>

					<description><![CDATA[<p>When you are using To Laravel Project with Connect to Api. Then pagination and search filter (laravel default) will not [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-create-manual-pagination-with-search-filter-in-laravel-api/">How to create manual pagination with search filter in Laravel API?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<pre id="tw-target-text" class="wp-block-preformatted">When you are using To Laravel Project with Connect to Api. Then pagination and search filter (laravel default) will not work in this process. So, you can use DataTable or Manual. So in this blog I am using manual.
</pre>



<script src="https://gist.github.com/ajcotocus/a005126ec94376107358549df88ac4ed.js"></script>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="87" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/search-filter-1024x87.png" alt="" class="wp-image-6695" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/search-filter-1024x87.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/search-filter-300x26.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/search-filter-768x65.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/search-filter.png 1199w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>This is a Search Input filter</strong></p>





<script src="https://gist.github.com/ajcotocus/8e2dff2377b3229e971d4282e9af5ae4.js"></script>



<figure class="wp-block-image size-large"><img decoding="async" width="348" height="121" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/pagination-filter.png" alt="" class="wp-image-6696" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/pagination-filter.png 348w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/pagination-filter-300x104.png 300w" sizes="(max-width: 348px) 100vw, 348px" /></figure>



<p class="wp-block-paragraph"><strong>This is Pagination</strong></p>



<script src="https://gist.github.com/ajcotocus/d464fcca51defe7b16b5901224ee4e00.js"></script>



<p class="wp-block-paragraph"><strong>This is Js in script tag</strong></p>



<script src="https://gist.github.com/ajcotocus/33a78f4cbfabc74c1c32a7a7662ba38f.js"></script>



<p class="wp-block-paragraph">This is First Laravel Project Controller Function for sending requests for pagination and Search Filter.</p>



<script src="https://gist.github.com/ajcotocus/e3d4c454960e0e86d6e77f221bfaf7e3.js"></script>



<p class="wp-block-paragraph">This is Second Project Controller Function for pagination and search filter.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="709" height="900" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/search-filter-output-2.png" alt="" class="wp-image-6697" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/search-filter-output-2.png 709w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/search-filter-output-2-236x300.png 236w" sizes="(max-width: 709px) 100vw, 709px" /></figure>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-create-manual-pagination-with-search-filter-in-laravel-api/">How to create manual pagination with search filter in Laravel API?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-create-manual-pagination-with-search-filter-in-laravel-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to create custom pagination  without datatable in laravel microservice</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-create-custom-pagination-without-datatable-in-laravel-microservice/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-create-custom-pagination-without-datatable-in-laravel-microservice/#respond</comments>
		
		<dc:creator><![CDATA[Rakesh K]]></dc:creator>
		<pubDate>Thu, 06 May 2021 12:30:09 +0000</pubDate>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[microservice]]></category>
		<category><![CDATA[pagination]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6096</guid>

					<description><![CDATA[<p>Step 1:create button input in blade file Step 2: declare variable like curtpage, pagelimit and total record when you click [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-create-custom-pagination-without-datatable-in-laravel-microservice/">How to create custom pagination  without datatable in laravel microservice</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Step 1:</strong>create button input in blade file</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1019" height="603" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagination1.png" alt="" class="wp-image-6097" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagination1.png 1019w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagination1-300x178.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagination1-768x454.png 768w" sizes="auto, (max-width: 1019px) 100vw, 1019px" /></figure>



<p class="wp-block-paragraph"><strong>Step 2:</strong>  declare variable like curtpage, pagelimit and total record</p>



<p class="wp-block-paragraph">when you click the button then apply business logic inside jquery/javascript function</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="558" height="369" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagination2.png" alt="" class="wp-image-6098" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagination2.png 558w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagination2-300x198.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagination2-392x260.png 392w" sizes="auto, (max-width: 558px) 100vw, 558px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="738" height="410" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/paginatio3.png" alt="" class="wp-image-6099" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/paginatio3.png 738w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/paginatio3-300x167.png 300w" sizes="auto, (max-width: 738px) 100vw, 738px" /></figure>



<p class="wp-block-paragraph"><strong>Step 3:</strong> when we get data after ajax success function  then apply logic</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="931" height="780" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi4.png" alt="" class="wp-image-6100" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi4.png 931w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi4-300x251.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi4-768x643.png 768w" sizes="auto, (max-width: 931px) 100vw, 931px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="954" height="839" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi5.png" alt="" class="wp-image-6101" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi5.png 954w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi5-300x264.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi5-768x675.png 768w" sizes="auto, (max-width: 954px) 100vw, 954px" /></figure>



<p class="wp-block-paragraph"><strong>Step 4:</strong> set routing in client side</p>



<p class="wp-block-paragraph">Route::prefix(&#8216;/touroperator&#8217;)-&gt;group(function () use ($namespace) {</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
Route::get(&#039;iternarydetail/{email}&#039;,&quot;$tourcontroller@getiternary&quot;);
</pre></div>


<p class="wp-block-paragraph">});</p>



<p class="wp-block-paragraph"><strong>Step 5: get token and client id  in client side controller using function</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="989" height="809" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/paginatio6-1.png" alt="" class="wp-image-6103" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/paginatio6-1.png 989w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/paginatio6-1-300x245.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/paginatio6-1-768x628.png 768w" sizes="auto, (max-width: 989px) 100vw, 989px" /></figure>



<p class="wp-block-paragraph"><strong>Step 6: set env and config flie</strong></p>



<p class="wp-block-paragraph">GET_MYHOLIDAYITERNARY_URL=/api/v1/j/iternarydetail</p>



<p class="wp-block-paragraph"><strong>Step 6:set Routing in server side</strong></p>



<p class="wp-block-paragraph">&nbsp;Route::get(&#8216;iternarydetail/{email}&#8217;,&nbsp;&#8216;Admin\AdminTPController@iternarydetail&#8217;);</p>



<p class="wp-block-paragraph"><strong>Step 7: apply  pagination query  inside sever side controller function</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="468" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi8-1024x468.png" alt="" class="wp-image-6105" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi8-1024x468.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi8-300x137.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi8-768x351.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi8-1536x702.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi8.png 1681w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">finally  output view looks like</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="462" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi11-1024x462.png" alt="" class="wp-image-6106" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi11-1024x462.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi11-300x135.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi11-768x347.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi11-1536x694.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/pagi11.png 1681w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-create-custom-pagination-without-datatable-in-laravel-microservice/">How to create custom pagination  without datatable in laravel microservice</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-create-custom-pagination-without-datatable-in-laravel-microservice/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Laravel Microservice Error: Call to undefined method GuzzleHttp\Exception\ConnectException::getResponse()</title>
		<link>https://www.scmgalaxy.com/tutorials/laravel-microservice-error-call-to-undefined-method-guzzlehttpexceptionconnectexceptiongetresponse/</link>
					<comments>https://www.scmgalaxy.com/tutorials/laravel-microservice-error-call-to-undefined-method-guzzlehttpexceptionconnectexceptiongetresponse/#respond</comments>
		
		<dc:creator><![CDATA[Rakesh K]]></dc:creator>
		<pubDate>Sat, 01 May 2021 12:51:11 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[microservice]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6036</guid>

					<description><![CDATA[<p>there are no of reason behind this error(i) guzzle version in composer json(ii) connection issue between client and server side [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/laravel-microservice-error-call-to-undefined-method-guzzlehttpexceptionconnectexceptiongetresponse/">Laravel Microservice Error: Call to undefined method GuzzleHttp\Exception\ConnectException::getResponse()</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">there are no of reason behind this error<br>(i) guzzle version in composer json<br>(ii) connection issue between client and server side microservices</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="229" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http5-1024x229.png" alt="" class="wp-image-6037" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http5-1024x229.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http5-300x67.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http5-768x172.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http5-1536x343.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http5.png 1576w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">client side url in env file:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="572" height="48" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http.png" alt="" class="wp-image-6038" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http.png 572w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http-300x25.png 300w" sizes="auto, (max-width: 572px) 100vw, 572px" /></figure>



<p class="wp-block-paragraph">server side url in env file:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="714" height="71" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http2.png" alt="" class="wp-image-6041" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http2.png 714w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http2-300x30.png 300w" sizes="auto, (max-width: 714px) 100vw, 714px" /></figure>



<p class="wp-block-paragraph"><strong>Solution:</strong></p>



<p class="wp-block-paragraph">in client side and server side  url http is mention  so to resolve this error we have to change the client side url and server side url in env file</p>



<p class="wp-block-paragraph">change http to https in both client side and server side url</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="643" height="64" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http9.png" alt="" class="wp-image-6051" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http9.png 643w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http9-300x30.png 300w" sizes="auto, (max-width: 643px) 100vw, 643px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="781" height="50" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http4-1.png" alt="" class="wp-image-6054" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http4-1.png 781w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http4-1-300x19.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/http4-1-768x49.png 768w" sizes="auto, (max-width: 781px) 100vw, 781px" /></figure>



<p class="wp-block-paragraph">2nd solution:</p>



<p class="wp-block-paragraph">check guzzle version in composer json</p>



<p class="wp-block-paragraph">composer require guzzlehttp/guzzle:^6.0  in terminal or gitbash</p>



<p class="wp-block-paragraph">if 6.0 not suitable then other version also you can try run</p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/laravel-microservice-error-call-to-undefined-method-guzzlehttpexceptionconnectexceptiongetresponse/">Laravel Microservice Error: Call to undefined method GuzzleHttp\Exception\ConnectException::getResponse()</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/laravel-microservice-error-call-to-undefined-method-guzzlehttpexceptionconnectexceptiongetresponse/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
