<?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>multiple checkbox Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/multiple-checkbox/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/multiple-checkbox/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 12 May 2021 10:05:41 +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 Store Multiple Records using Checkbox in Laravel?</title>
		<link>https://www.scmgalaxy.com/tutorials/multiple-checkbox-select-in-laravel-microservice/</link>
					<comments>https://www.scmgalaxy.com/tutorials/multiple-checkbox-select-in-laravel-microservice/#respond</comments>
		
		<dc:creator><![CDATA[Rakesh K]]></dc:creator>
		<pubDate>Wed, 12 May 2021 03:29:39 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[multiple checkbox]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6203</guid>

					<description><![CDATA[<p>First Part: first of all, we will learn how to design or getdata in blade file In table we will [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/multiple-checkbox-select-in-laravel-microservice/">How to Store Multiple Records using Checkbox in Laravel?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="495" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkboxs-1024x495.png" alt="" class="wp-image-6219" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkboxs-1024x495.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkboxs-300x145.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkboxs-768x371.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkboxs.png 1358w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>First Part: first of all, we will learn how to design or getdata in blade file</strong></p>



<p class="wp-block-paragraph">In table we will set one field default value as no while migrating data</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="494" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox7-1024x494.png" alt="" class="wp-image-6204" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox7-1024x494.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox7-300x145.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox7-768x370.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox7-1536x741.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox7.png 1688w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>test_migration.php</strong></p>



<script src="https://gist.github.com/rakesh1166-cm/6ca0cae68190bb91bfa808016d7237df.js"></script>



<p class="wp-block-paragraph">In blade file we will create one table</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="526" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/perm1-1024x526.png" alt="" class="wp-image-6205" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/perm1-1024x526.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/perm1-300x154.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/perm1-768x395.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/perm1-1536x789.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/perm1.png 1681w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Next, in js we will create one fetch function</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="483" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox1-1024x483.png" alt="" class="wp-image-6206" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox1-1024x483.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox1-300x141.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox1-768x362.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox1-1536x724.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox1.png 1688w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="476" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox2-1024x476.png" alt="" class="wp-image-6207" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox2-1024x476.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox2-300x140.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox2-768x357.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox2-1536x714.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox2.png 1688w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">onclick java script function</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="476" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox-1024x476.png" alt="" class="wp-image-6217" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox-1024x476.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox-300x140.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox-768x357.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox-1536x714.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox.png 1688w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>Routing:set route</strong></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">
$controller = $namespace.&#039;\TourDashboardController&#039;;
$tourcontroller = $namespace.&#039;\TourDetailController&#039;;
</pre></div>


<p class="wp-block-paragraph">Route::get(&#8216;toursdetail/{email}&#8217;,&#8221;$tourcontroller@gettrip&#8221;);<br></p>



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



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



<p class="wp-block-paragraph"><strong>create function in client side controller</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="510" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox2-1024x510.png" alt="" class="wp-image-6216" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox2-1024x510.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox2-300x149.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox2-768x382.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox2-1536x764.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox2.png 1688w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>Set env file</strong>:</p>



<p class="wp-block-paragraph">GET_MYHOLIDAYTRIP_URL=/api/v1/j/gettripdetail</p>



<p class="wp-block-paragraph"><strong>Set Config file:</strong></p>



<p class="wp-block-paragraph">GET_MYHOLIDAYTRIP_URL&#8217;&nbsp;=&gt;&nbsp;env(&#8216;GET_MYHOLIDAYTRIP_URL&#8217;,&nbsp;&#8216;not&nbsp;found&nbsp;in&nbsp;.env&nbsp;file&#8217;),</p>



<p class="wp-block-paragraph"><strong>Routing set Server side:</strong></p>



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



<p class="wp-block-paragraph"><strong>Create function in server side</strong>:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="491" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox3-1024x491.png" alt="" class="wp-image-6212" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox3-1024x491.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox3-300x144.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox3-768x368.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox3-1536x736.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox3.png 1688w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>Second Part: thereafter, we will learn how to store data after selecting in blade file</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="503" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox4-1-1024x503.png" alt="" class="wp-image-6214" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox4-1-1024x503.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox4-1-300x147.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox4-1-768x377.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox4-1-1536x754.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/miltiple-checkbox4-1.png 1688w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



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



<p class="wp-block-paragraph"><strong>Set Routing(Client side microservice) :</strong></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">
$controller = $namespace.&#039;\TourDashboardController&#039;;
$tourcontroller = $namespace.&#039;\TourDetailController&#039;;
</pre></div>


<p class="wp-block-paragraph">Route::post(&#8216;permissiontour/{email}&#8217;, &#8216;AdminController@addpermission&#8217;)-&gt;name(&#8216;permissiontour&#8217;);<br>});</p>



<p class="wp-block-paragraph"><strong>Create function in client side controller</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="515" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox5-1-1024x515.png" alt="" class="wp-image-6215" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox5-1-1024x515.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox5-1-300x151.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox5-1-768x386.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox5-1-1536x773.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox5-1.png 1688w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>Set Env file</strong></p>



<p class="wp-block-paragraph">PERMIT_TRIP_URL=/api/v1/j/permittrip</p>



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



<p class="wp-block-paragraph">&#8216;PERMIT_TRIP_URL&#8217;&nbsp;=&gt;&nbsp;env(&#8216;PERMIT_TRIP_URL&#8217;,&nbsp;&#8216;not&nbsp;found&nbsp;in&nbsp;.env&nbsp;file&#8217;),&nbsp;</p>



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



<p class="wp-block-paragraph"><strong>Set Routing in server side Microservice</strong></p>



<p class="wp-block-paragraph">Route::post(&#8216;/permittrip&#8217;, &#8216;Admin\AdminTPController@storepermission&#8217;);</p>



<p class="wp-block-paragraph"><strong>Create function in controller server side microservice</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="476" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox6-1-1024x476.png" alt="" class="wp-image-6218" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox6-1-1024x476.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox6-1-300x140.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox6-1-768x357.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox6-1-1536x714.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/multiple-checkbox6-1.png 1688w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/multiple-checkbox-select-in-laravel-microservice/">How to Store Multiple Records using Checkbox in Laravel?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/multiple-checkbox-select-in-laravel-microservice/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
