<?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: rnd</title>
    <description>The latest articles on DEV Community by rnd (@codemoron).</description>
    <link>https://dev.to/codemoron</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%2F1062691%2F902bf42d-8382-4f9e-adac-f071208286eb.jpg</url>
      <title>DEV Community: rnd</title>
      <link>https://dev.to/codemoron</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/codemoron"/>
    <language>en</language>
    <item>
      <title>Just another November 11</title>
      <dc:creator>rnd</dc:creator>
      <pubDate>Wed, 12 Nov 2025 04:39:56 +0000</pubDate>
      <link>https://dev.to/codemoron/just-another-november-11-1eag</link>
      <guid>https://dev.to/codemoron/just-another-november-11-1eag</guid>
      <description>&lt;p&gt;Coding. AI-ng solutions. Reading concepts. *&lt;em&gt;The loop. *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;We sometimes stumble on problems that we've already encountered before but cared to little to remember the concept or solution.&lt;/p&gt;

&lt;p&gt;Just another day as a &lt;strong&gt;wip&lt;/strong&gt; programmer here. Here's what I noted today.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;in php, function type: &lt;code&gt;removeFiles() : string&lt;/code&gt;
&lt;em&gt;you can use &lt;code&gt;?string&lt;/code&gt; which means nullable return, so its either string or null&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;in php, to throw exceptions that can be handle by catch(): use &lt;code&gt;throw new Exception("the error")&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;PHP falsy values that can be catch by &lt;code&gt;!$variableName&lt;/code&gt;: &lt;code&gt;null, false, 0, '0', '', []&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;in Laravel, &lt;code&gt;return self::where('order_code', $orderCode)-&amp;gt;get()&lt;/code&gt; this is an Eloquent query: returns a collection. &lt;/li&gt;
&lt;li&gt;in Laravel, if you manually add models and controllers - you need to run &lt;code&gt;composer dump-autoload&lt;/code&gt; &lt;code&gt;php artisan optimize:clear&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;in Laravel data validation, to check for uniqueness use this: &lt;code&gt;unique:table,column,except_id&lt;/code&gt; | &lt;code&gt;unique:tblSample,name,' . $request-&amp;gt;id&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;in tailwind CSS, element auto fill the available space use: &lt;code&gt;grid-cols-[repeat(auto-fit,minmax(200px,1fr))]&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;in HTML, to disable tab stop for specific elements add: &lt;code&gt;tabIndex={-1}&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Disclaimer: These are concepts I noted for myself; the grammar isn’t polished - just for me to remember the things.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>todayilearned</category>
      <category>programming</category>
      <category>php</category>
      <category>laravel</category>
    </item>
  </channel>
</rss>
