title: How to call a parameterized stored procedure using model in laravel
body: <p>I made a store procedure in mysql named 'Insertusers' having 8 parameters in it.</p>
  
  <p>Now i want to call this procedure using my model and insert value in table using this procedure.</p>
  
  <p>Here is my Model's code :</p>
  
  <pre><code>&lt;?php
      class Insertuser extends Eloquent {
          protected $guarded = array();
  
   public static function storedProcedureCall() {
           return DB::statement('Insertusers');
      } 
   public static $rules = array();
              }
  ?&gt;
  </code></pre>
  
  <p>Here is my Controllers' code :</p>
  
  <pre><code>public function createUser() {
  $clan = new Insertuser;
              $clan-&gt;clanname = Input::get('clanname');
              $clan-&gt;description = Input::get('tbx_new_clan_Des');
              if (Input::get('chk_new_clan_Status')) {
                  $clan-&gt;active = true;
              } else {
                  $clan-&gt;active = false;
              }
              if (Input::get('chk_new_clan_Incoming')) {
                  $clan-&gt;allow_incoming = true;
              } else {
                  $clan-&gt;allow_incoming = false;
              }
              if (Input::get('chk_new_clan_key')) {
                  $clan-&gt;clan_key = Input::get('tbx_new_clan_key');
              }
              $clan-&gt;created_by = Session::get('userid');
              $clan-&gt;last_updated_by = Session::get('userid');
              $clan-&gt;DOMType=1;
              $clan-&gt;save();
  
  }
  </code></pre>
  
  <p>When i tried to create a user, i am getting the following error :</p>
  
  <p>SQLSTATE[42S02]: Base table or view not found.</p>
  
  <p>Please help me out.
  Thanks.</p>