<?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: Krixnaas</title>
    <description>The latest articles on DEV Community by Krixnaas (@krixnaas).</description>
    <link>https://dev.to/krixnaas</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%2F722154%2Fcbd0a17c-39a0-40ea-a191-d3df22d249b6.jpeg</url>
      <title>DEV Community: Krixnaas</title>
      <link>https://dev.to/krixnaas</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/krixnaas"/>
    <language>en</language>
    <item>
      <title>payload generate:types throwing error promises</title>
      <dc:creator>Krixnaas</dc:creator>
      <pubDate>Sun, 27 Jul 2025 08:27:13 +0000</pubDate>
      <link>https://dev.to/krixnaas/payload-generatetypes-throwing-error-promises-3a7j</link>
      <guid>https://dev.to/krixnaas/payload-generatetypes-throwing-error-promises-3a7j</guid>
      <description>&lt;p&gt;If you are wondering, where to add 'type':'module' ? &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffocp8587dva1yzrixzwk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffocp8587dva1yzrixzwk.png" alt=" " width="588" height="245"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>payloadcms</category>
    </item>
    <item>
      <title>10 Free Most Useful apps for your Mac</title>
      <dc:creator>Krixnaas</dc:creator>
      <pubDate>Thu, 17 Oct 2024 22:09:26 +0000</pubDate>
      <link>https://dev.to/krixnaas/10-free-most-useful-apps-for-your-mac-635</link>
      <guid>https://dev.to/krixnaas/10-free-most-useful-apps-for-your-mac-635</guid>
      <description>&lt;p&gt;In this video, I have find out 10 Free Most Useful apps for your Mac. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Alfred&lt;/li&gt;
&lt;li&gt;DaVinci Resolve&lt;/li&gt;
&lt;li&gt;CapCut&lt;/li&gt;
&lt;li&gt;Audacity &lt;/li&gt;
&lt;li&gt;OBS Studio &lt;/li&gt;
&lt;li&gt;Canva&lt;/li&gt;
&lt;li&gt;Notion &lt;/li&gt;
&lt;li&gt;LocalSend &lt;/li&gt;
&lt;li&gt;PDF Gear&lt;/li&gt;
&lt;li&gt;TempBox&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Honorable Mentions &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Arc Browser with Perplexity AI&lt;/li&gt;
&lt;li&gt;Flow &lt;/li&gt;
&lt;li&gt;Portal &lt;/li&gt;
&lt;li&gt;Photopea&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://youtu.be/q2npHJc4Xe4" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpryx0n14oh7c23k4gp40.jpg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>macbook</category>
      <category>freeapps</category>
      <category>contentcreators</category>
    </item>
    <item>
      <title>Laravel Herd NGINX ISSUE</title>
      <dc:creator>Krixnaas</dc:creator>
      <pubDate>Thu, 17 Oct 2024 00:55:49 +0000</pubDate>
      <link>https://dev.to/krixnaas/laravel-herd-nginx-issue-2eh5</link>
      <guid>https://dev.to/krixnaas/laravel-herd-nginx-issue-2eh5</guid>
      <description>&lt;p&gt;Run PowerShell as Admin&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;iisreset /stop

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>laravel</category>
      <category>nginx</category>
      <category>laravelherd</category>
    </item>
    <item>
      <title>Find out 10 Free Most Useful Apps for Content Creators - 2024</title>
      <dc:creator>Krixnaas</dc:creator>
      <pubDate>Mon, 07 Oct 2024 10:49:09 +0000</pubDate>
      <link>https://dev.to/krixnaas/find-out-10-free-most-useful-apps-for-content-creators-2024-29ka</link>
      <guid>https://dev.to/krixnaas/find-out-10-free-most-useful-apps-for-content-creators-2024-29ka</guid>
      <description>&lt;p&gt;Find out 10 Free Most Useful Apps for Content Creators - 2024&lt;br&gt;
&lt;a href="https://youtu.be/q2npHJc4Xe4" rel="noopener noreferrer"&gt;https://youtu.be/q2npHJc4Xe4&lt;/a&gt;&lt;/p&gt;

</description>
      <category>contentcreators</category>
    </item>
    <item>
      <title>419 Page Expired Issue in Laravel</title>
      <dc:creator>Krixnaas</dc:creator>
      <pubDate>Wed, 15 May 2024 22:11:32 +0000</pubDate>
      <link>https://dev.to/krixnaas/419-page-expired-issue-in-laravel-1lo8</link>
      <guid>https://dev.to/krixnaas/419-page-expired-issue-in-laravel-1lo8</guid>
      <description>&lt;p&gt;&lt;code&gt;chmod 775 -R bootstrap/ storage/&lt;br&gt;
php artisan config:cache&lt;/code&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
    </item>
    <item>
      <title>Securing your website through an .htaccess file with password protection</title>
      <dc:creator>Krixnaas</dc:creator>
      <pubDate>Thu, 07 Mar 2024 10:50:47 +0000</pubDate>
      <link>https://dev.to/krixnaas/securing-your-website-through-an-htaccess-file-with-password-protection-1nd9</link>
      <guid>https://dev.to/krixnaas/securing-your-website-through-an-htaccess-file-with-password-protection-1nd9</guid>
      <description>&lt;p&gt;This article details the process of securing a directory via SSH by setting up an .htaccess and .htpasswd file. The following steps are outlined in the article.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Generating the .htpasswd file
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Access your server via SSH.&lt;/li&gt;
&lt;li&gt;Navigate to the directory you intend to safeguard.&lt;/li&gt;
&lt;li&gt;Run pwd to confirm the full file path to this directory. You'll need this full path in the next step
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;[server]$ pwd&lt;br&gt;
/var/www/example&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generate an .htpasswd file by executing the following command in the directory you want to secure. This command utilizes the htpasswd utility and the complete path to the directory. For instance, if you're creating a username "admin" for login, execute the following:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;[server]$ htpasswd -c /var/www/example/.htpasswd admin&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Provide a password for the new user named "admin". Upon entering the password, the code in your .htpasswd file will showcase the encrypted password, similar to this format:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;admin:$apr1$bkS4zPQl$SyGLA9oP75L5uM5GHpe9A2&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Verify that the permissions are set to 644 by executing the following command:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;[server]$ chmod 644 .htpasswd&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2 — Create the .htaccess file
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Next, create an .htaccess file using the nano editor:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;[server]$ nano .htaccess&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;-To protect an entire website using .htaccess, you can add the following code examples to the .htaccess file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AuthName "Dialog prompt"
AuthType Basic
AuthUserFile /var/www/example/.htpasswd
Require valid-user
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Communication link failure:1153 Got a packet bigger than 'max_allowed_packet' bytes"</title>
      <dc:creator>Krixnaas</dc:creator>
      <pubDate>Tue, 20 Jun 2023 10:23:03 +0000</pubDate>
      <link>https://dev.to/krixnaas/communication-link-failure1153-got-a-packet-bigger-than-maxallowedpacket-bytes-53nb</link>
      <guid>https://dev.to/krixnaas/communication-link-failure1153-got-a-packet-bigger-than-maxallowedpacket-bytes-53nb</guid>
      <description>&lt;p&gt;In etc/my.cnf try changing the max_allowed _packet and net_buffer_length to&lt;/p&gt;

&lt;p&gt;max_allowed_packet=100000000&lt;br&gt;
net_buffer_length=1000000 &lt;/p&gt;

&lt;p&gt;if this is not working then try changing to&lt;/p&gt;

&lt;p&gt;max_allowed_packet=100M&lt;br&gt;
net_buffer_length=100K &lt;/p&gt;

</description>
      <category>mysql</category>
      <category>xamp</category>
    </item>
    <item>
      <title>Undo Git discarded changes</title>
      <dc:creator>Krixnaas</dc:creator>
      <pubDate>Mon, 05 Jun 2023 00:42:02 +0000</pubDate>
      <link>https://dev.to/krixnaas/undo-git-discarded-changes-553l</link>
      <guid>https://dev.to/krixnaas/undo-git-discarded-changes-553l</guid>
      <description>&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/43541167/how-do-you-undo-discard-all-changes-in-vs-code-git"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>nocommit</category>
      <category>discarded</category>
      <category>git</category>
    </item>
    <item>
      <title>Php artisan migrate throws table base or view on found [Solved]</title>
      <dc:creator>Krixnaas</dc:creator>
      <pubDate>Thu, 04 May 2023 00:24:09 +0000</pubDate>
      <link>https://dev.to/krixnaas/php-artisan-migrate-throws-table-base-or-view-on-found-solved-dof</link>
      <guid>https://dev.to/krixnaas/php-artisan-migrate-throws-table-base-or-view-on-found-solved-dof</guid>
      <description>&lt;p&gt;This error was occurring because of a scheduled task in laravel that involved a database lookup. By commenting out all the task scheduler in&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;laravel/app/Console/Kernel.php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;you can run &lt;code&gt;php artisan migrate&lt;/code&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>laravel5</category>
      <category>mysql</category>
    </item>
    <item>
      <title>[Solved]You must call ‘the_content’ function in the current template</title>
      <dc:creator>Krixnaas</dc:creator>
      <pubDate>Sun, 19 Mar 2023 07:12:15 +0000</pubDate>
      <link>https://dev.to/krixnaas/you-must-call-thecontent-function-in-the-current-template-d71</link>
      <guid>https://dev.to/krixnaas/you-must-call-thecontent-function-in-the-current-template-d71</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;go to your Dashboard-&amp;gt; Settings -&amp;gt; Permalinks and simply click on Save Changes&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>wordpress</category>
    </item>
    <item>
      <title>Active / Offline state of browser tab</title>
      <dc:creator>Krixnaas</dc:creator>
      <pubDate>Thu, 16 Mar 2023 22:34:35 +0000</pubDate>
      <link>https://dev.to/krixnaas/active-offline-state-of-browser-tab-551b</link>
      <guid>https://dev.to/krixnaas/active-offline-state-of-browser-tab-551b</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt; 
document.addEventListener("visibilitychange", function() {
      document.title = document.hidden ? "I'm away" : "I'm here";
});
document.addEventListener("visibilitychange", (event) =&amp;gt; {
  if (document.visibilityState == "visible") {
    console.log("tab is active")
  } else {
    console.log("tab is inactive")
  }
}); 

var siteTitle="";
window.addEventListener('blur', () =&amp;gt; {
  siteTitle = document.title;
  document.title = 'Come back! :c';
});
window.addEventListener('focus', () =&amp;gt; {
  document.title = siteTitle;
});
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
    </item>
    <item>
      <title>Expandable Yajra DataTable Laravel</title>
      <dc:creator>Krixnaas</dc:creator>
      <pubDate>Tue, 14 Mar 2023 10:52:07 +0000</pubDate>
      <link>https://dev.to/krixnaas/expandable-yajra-datatable-laravel-k0h</link>
      <guid>https://dev.to/krixnaas/expandable-yajra-datatable-laravel-k0h</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var table = $('#users-table').DataTable({
        processing: true,
        serverSide: true,
        ajax: '{{ url("users-data") }}',
        columns: [
            {
                "className":      'details-control',
                "orderable":      false,
                "data":           null,
                "defaultContent": ''
            },
            {data: 'id', name: 'id'},
            {data: 'name', name: 'name'},
            {data: 'email', name: 'email'},
            {data: 'created_at', name: 'created_at'},
            {data: 'updated_at', name: 'updated_at'}
        ],
        order: [[1, 'asc']]
    });

    // Add event listener for opening and closing details
    $('#users-table tbody').on('click', 'td.details-control', function () {
        var tr = $(this).closest('tr');
        var row = table.row( tr );

        if ( row.child.isShown() ) {
            // This row is already open - close it
            row.child.hide();
            tr.removeClass('shown');
        }
        else {
            // Open this row
            row.child( format(row.data()) ).show();
            tr.addClass('shown');
        }
    });

    /* Formatting function for row details - modify as you need */
    function format ( d ) {
        // `d` is the original data object for the row
        return '&amp;lt;table class="table"&amp;gt;'+
            '&amp;lt;tr&amp;gt;'+
                '&amp;lt;td&amp;gt;Full name:&amp;lt;/td&amp;gt;'+
                '&amp;lt;td&amp;gt;'+d.name+'&amp;lt;/td&amp;gt;'+
                '&amp;lt;/tr&amp;gt;'+
            '&amp;lt;tr&amp;gt;'+
                '&amp;lt;td&amp;gt;Email:&amp;lt;/td&amp;gt;'+
                '&amp;lt;td&amp;gt;'+d.email+'&amp;lt;/td&amp;gt;'+
                '&amp;lt;/tr&amp;gt;'+
            '&amp;lt;tr&amp;gt;'+
                '&amp;lt;td&amp;gt;Extra info:&amp;lt;/td&amp;gt;'+
                '&amp;lt;td&amp;gt;And any further details here (images etc)...&amp;lt;/td&amp;gt;'+
                '&amp;lt;/tr&amp;gt;'+
            '&amp;lt;/table&amp;gt;';
    }
On your controller

public function getUsersData()
{
        $users = User::select(['id', 'name', 'email', 'created_at', 'updated_at']);

        return Datatables::of($users)-&amp;gt;make(true);
}```

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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