
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: How to Query Posts by Different Dates in Laravel 5	</title>
	<atom:link href="https://www.technig.com/laravel-5-query-posts-dates/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/laravel-5-query-posts-dates/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Fri, 06 Jul 2018 12:35:33 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>
		By: Aimal Amiri		</title>
		<link>https://www.technig.com/laravel-5-query-posts-dates/#comment-840</link>

		<dc:creator><![CDATA[Aimal Amiri]]></dc:creator>
		<pubDate>Fri, 06 Jul 2018 12:35:33 +0000</pubDate>
		<guid isPermaLink="false">https://www.technig.com/?p=9088#comment-840</guid>

					<description><![CDATA[It was helpful thank you so much]]></description>
			<content:encoded><![CDATA[<p>It was helpful thank you so much</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: robert		</title>
		<link>https://www.technig.com/laravel-5-query-posts-dates/#comment-839</link>

		<dc:creator><![CDATA[robert]]></dc:creator>
		<pubDate>Mon, 08 May 2017 07:32:43 +0000</pubDate>
		<guid isPermaLink="false">https://www.technig.com/?p=9088#comment-839</guid>

					<description><![CDATA[i fixed it with carbon &lt;code&gt;$monthy_posts = Post::whereRaw(&#039;MONTH(created_at) = ?&#039;, Carbon::today()-&#062;month)-&#062;count();&lt;/code&gt;

maybe others need this piece of code.]]></description>
			<content:encoded><![CDATA[<p>i fixed it with carbon <code>$monthy_posts = Post::whereRaw('MONTH(created_at) = ?', Carbon::today()-&gt;month)-&gt;count();</code></p>
<p>maybe others need this piece of code.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Hujjat Nazari		</title>
		<link>https://www.technig.com/laravel-5-query-posts-dates/#comment-838</link>

		<dc:creator><![CDATA[Hujjat Nazari]]></dc:creator>
		<pubDate>Tue, 02 May 2017 12:38:56 +0000</pubDate>
		<guid isPermaLink="false">https://www.technig.com/?p=9088#comment-838</guid>

					<description><![CDATA[Hi,
make sure you have added the varibale currectMonth above your query. 

$currentMonth = date(&#039;m&#039;);]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
make sure you have added the varibale currectMonth above your query. </p>
<p>$currentMonth = date(&#8216;m&#8217;);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: robert		</title>
		<link>https://www.technig.com/laravel-5-query-posts-dates/#comment-837</link>

		<dc:creator><![CDATA[robert]]></dc:creator>
		<pubDate>Tue, 02 May 2017 03:30:33 +0000</pubDate>
		<guid isPermaLink="false">https://www.technig.com/?p=9088#comment-837</guid>

					<description><![CDATA[When i try to get monthly posts count number will return this error:  Undefined variable: currentMonth]]></description>
			<content:encoded><![CDATA[<p>When i try to get monthly posts count number will return this error:  Undefined variable: currentMonth</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
