title: pass parameters in insert query stored procedure in laravel 4
body: <p>I have created a procedure for insertion but dont know how to call parameters "name" and "path" in controller and model</p>
  
  <p>Stored procedure:</p>
  
  <pre><code>CREATE DEFINER=`root`@`localhost` 
       PROCEDURE `insert_document_details`
          (IN `name` VARCHAR(50), IN `path` VARCHAR(255) )
  BEGIN
      INSERT INTO `document_details`
        (`document_name`, `document_path`) 
      VALUES (name,path);
  END
  </code></pre>
  
  <p>Routes:</p>
  
  <pre><code>Route::post('insert_document_details/{name}/{path}',array('as'=&gt;'insert_document_details',
  'uses'=&gt;'AuthorsController@post_document_details'));
  </code></pre>
  
  <p>AuthorController:</p>
  
  <pre><code>class AuthorsController extends BaseController{
          public $restful = true;
  
          public function post_document_details($name,$path)
          {
  
              $document_details=Response::json(Author::insert_document_details_Call());
              return $document_details;
          }
  }
  </code></pre>
  
  <p>Author(model):</p>
  
  <pre><code>class Author extends Eloquent {
  
      public $table = 'document_details';
      protected $primaryKey = 'id';
  
      public static function insert_document_details_Call($name,$path)
      {
          return DB::select('call insert_document_details');
      }
  }
  </code></pre>