<?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>two table Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/two-table/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/two-table/</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>Laravel : Comparing datetime between two table while selecting record</title>
		<link>https://www.scmgalaxy.com/tutorials/laravel-comparing-datetime-between-two-table-while-selecting-record/</link>
					<comments>https://www.scmgalaxy.com/tutorials/laravel-comparing-datetime-between-two-table-while-selecting-record/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Wed, 16 Jun 2021 05:44:13 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[comparing]]></category>
		<category><![CDATA[datetime]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[selecting record]]></category>
		<category><![CDATA[two table]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6517</guid>

					<description><![CDATA[<p>If you want to Compare datetime between two table while selecting record then, In this function I am using two [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/laravel-comparing-datetime-between-two-table-while-selecting-record/">Laravel : Comparing datetime between two table while selecting record</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">If you want to Compare datetime between two table while selecting record then,</p>



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



<p class="wp-block-paragraph">In this function I am using two table First table using from Controller &#8220;AllClassController&#8221; in this controller, I am taking all data from $slug, and $id. After that I am taking trainer_email and update_at, after that when get value then Other table using Model &#8220;Payment&#8221; and using where function and taking &#8220;$payments_new&#8221; and using foreach function and taking which value who required. Same process for Other &#8220;$payments_old&#8221;.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="602" height="913" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/Comparing-datetime-between-two-table.png" alt="" class="wp-image-6518" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/Comparing-datetime-between-two-table.png 602w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/Comparing-datetime-between-two-table-198x300.png 198w" sizes="(max-width: 602px) 100vw, 602px" /></figure>



<p class="wp-block-paragraph">This is Output &#8220;New Enrolled Students Details&#8221; and &#8220;Old Enrolled Students Details&#8221;.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/laravel-comparing-datetime-between-two-table-while-selecting-record/">Laravel : Comparing datetime between two table while selecting record</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/laravel-comparing-datetime-between-two-table-while-selecting-record/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
