<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Laravel Bulk Update By Index ID]]></title><description><![CDATA[<p dir="auto">ම‍ට ඕනේ Laravel වල rows 2000 ක් විතර එක query එකකින් update කරන්න query එක loop කරන්නේ නැතුව , හැබැයි මේක කරන්න ඔනේ row එකේ index ID එකෙන් .</p>
]]></description><link>https://lankadevelopers.lk/topic/29/laravel-bulk-update-by-index-id</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 23:38:12 GMT</lastBuildDate><atom:link href="https://lankadevelopers.lk/topic/29.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Dec 2018 05:03:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Laravel Bulk Update By Index ID on Thu, 06 Dec 2018 09:52:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/35">@fern</a> Ohh this very simple. Thnx Bro</p>
]]></description><link>https://lankadevelopers.lk/post/160</link><guid isPermaLink="true">https://lankadevelopers.lk/post/160</guid><dc:creator><![CDATA[ciaompe]]></dc:creator><pubDate>Thu, 06 Dec 2018 09:52:25 GMT</pubDate></item><item><title><![CDATA[Reply to Laravel Bulk Update By Index ID on Thu, 06 Dec 2018 07:35:21 GMT]]></title><description><![CDATA[<p dir="auto">Great....</p>
]]></description><link>https://lankadevelopers.lk/post/159</link><guid isPermaLink="true">https://lankadevelopers.lk/post/159</guid><dc:creator><![CDATA[thilanka]]></dc:creator><pubDate>Thu, 06 Dec 2018 07:35:21 GMT</pubDate></item><item><title><![CDATA[Reply to Laravel Bulk Update By Index ID on Thu, 06 Dec 2018 06:33:02 GMT]]></title><description><![CDATA[<p dir="auto">මේ package එකෙන් ඔයාට ඕන දේ කරගන්න පුලූවන්, <a href="https://github.com/mavinoo/laravelBatch" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/mavinoo/laravelBatch</a>,</p>
<pre><code>$table = 'users';  //Your table name 

//update values 
$value = [
     [
         'id' =&gt; 1,
         'status' =&gt; 'active',
         'nickname' =&gt; 'Mohammad'
     ] ,
     [
         'id' =&gt; 5,
         'status' =&gt; 'deactive',
         'nickname' =&gt; 'Ghanbari'
     ] ,
];

//column you want to update using, in your scenario index id 
$index = 'id';

Batch::update($table, $value, $index);
</code></pre>
]]></description><link>https://lankadevelopers.lk/post/157</link><guid isPermaLink="true">https://lankadevelopers.lk/post/157</guid><dc:creator><![CDATA[fern]]></dc:creator><pubDate>Thu, 06 Dec 2018 06:33:02 GMT</pubDate></item></channel></rss>