<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mohammad Qandeell</title>
    <description>The latest articles on DEV Community by Mohammad Qandeell (@qandeelmohammad).</description>
    <link>https://dev.to/qandeelmohammad</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F196071%2F11528a82-8571-451f-a4e2-d4fa205e6d67.jpeg</url>
      <title>DEV Community: Mohammad Qandeell</title>
      <link>https://dev.to/qandeelmohammad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/qandeelmohammad"/>
    <language>en</language>
    <item>
      <title>Laravel helper function</title>
      <dc:creator>Mohammad Qandeell</dc:creator>
      <pubDate>Tue, 26 May 2020 01:15:21 +0000</pubDate>
      <link>https://dev.to/qandeelmohammad/laravel-helper-function-5h24</link>
      <guid>https://dev.to/qandeelmohammad/laravel-helper-function-5h24</guid>
      <description>&lt;p&gt;As you know, Laravel is a modern, leading-edge framework for PHP developers &lt;br&gt;
I also seemed to learn it. I wanted to share with you 2 "helper" function That you should not be ignorant of them as laravel developer.&lt;/p&gt;
&lt;h1&gt;
  
  
  dd()helper function
&lt;/h1&gt;

&lt;p&gt;The full form of dd is "Dump and Die" that's mean your script will dump a variable then will die.it's useful when tracing your code searching for the error.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nx"&gt;dd&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$value&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h1&gt;
  
  
  slug()helper function
&lt;/h1&gt;

&lt;p&gt;In case you are building a blog website, you should pay attention to improving search engine results "SEO", which rely heavily on the &lt;strong&gt;SLUG&lt;/strong&gt;&lt;br&gt;
Laravel comes with a &lt;strong&gt;SLUG&lt;/strong&gt; helper function that accepts a string and returns a link.&lt;br&gt;
This usually used when saving the article or news we use the &lt;strong&gt;SLUG&lt;/strong&gt; helper function to get the clean URL from the title of post or news&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nn"&gt;Illuminate\Support\Str&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nv"&gt;$slug&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;Str&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="na"&gt;of&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'your blog title'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'-'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// your-blog-title&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>laravel</category>
    </item>
  </channel>
</rss>
