Update table and add data in a Laravel 5 Migration
<p>I need to add a new column in my laravel Project, no problem for this, I used the <code>Schema::table()</code> to update and it's ok.
Now I need to find out how many records I have on this table and update with some value.</p>

<p>I have the table <code>Warrants</code>:</p>

<pre><code>Schema::create('warrant_grants', function(Blueprint $table) {
    $table-&gt;increments('id');
    $table-&gt;integer('warrant_plan_id');
    $table-&gt;integer('shareholder_id');
});
</code></pre>

<p>So I created the new field with a new migration file:</p>

<pre><code>Schema::table('warrant_grants',function ($table) {
    $table-&gt;string('name',100);
});
</code></pre>

<p>Now I need to update this field <code>name</code> in the table with some values, for example if the table has 100 records, then I need to insert in every row the value "Warrant-X" where X is a number starting with 1 to 100.
For example:</p>

<blockquote>
  <p>Warrant-1, Warrant-2, ....Warrant-100.</p>
</blockquote>

<p>I spent hours looking for some way to do this using Seeds but I didn't found. So basically i have two questions:</p>

<ul>
<li>Can I use Seeds in Laravel 5 to update values or I can just insert them?</li>
<li>Can I create some SQL inside the Seeds (or migrations) to do this update for me?</li>
</ul>