title: Set default value to a row with eloquent laravel
body: <p>i have created a resource controller using laravel with post and get method: </p>
  
  <pre><code>class MyController extends Controller{
      //get method when page is visited
      public function index()
      {
          $data=array(
              'title'=&gt;'Standard Stock',
              'standards'=&gt;DB::table('standards')
              -&gt;join('ps_product_lang','ps_product_lang.id_product','=','standards.id_product')
              -&gt;select('standards.*','ps_product_lang.name')
              -&gt;get()
          );
          return view('pages.standards')-&gt;with($data);
      }
  
      //post method to update value
  
       public function update(Request $request, $id)
     {
  
     $this-&gt;validate($request,[
          'quantity'=&gt;'required'
      ]);
      $standard=Standard::find($id);
      $standard-&gt;quantity=$request-&gt;input('quantity');
      $standard-&gt;save();
      return redirect('/standards')-&gt;with('success','Quantity Updated');
      }
  }
  </code></pre>
  
  <p>it works fine by now, but the problem is i have 2000 product in my ps_product_lang database, i want to set the all the <code>$standard-&gt;quantity</code> to 15 for each of them. 
  I used to update the quantity value via the <code>update()</code> function in the controller.</p>
  
  <p>But now I want to set an initial value as 15 to all the <code>$standard-&gt;quantity</code> and i am definitely not gonna click 2000 time form button to submit the post requests.</p>
  
  <p>My question is: is there any convenient way to set all <code>$standard-&gt;quantity</code> value to 15? without touching other code? </p>