title: laravel controller not returning value after insertion
body: <p>When i comment the inserting query, the return works.but with the query return is not working.it would be great if anyone can help immediatly</p>
  
  <hr>
  
  <pre><code> public function regCustomer()
  {
      $arr = [];
  
      $cus_name = Input::get('cusname');
      $cus_address = Input::get( 'address' );
      $cus_phone = Input::get( 'phone' );
      $cus_email = Input::get( 'email' );
  
      try{
          DB::table('Customers')-&gt;insert(
              array(
                  'customer_name' =&gt; $cus_name,
                  'address' =&gt; $cus_address,
                  'phone' =&gt; $cus_phone,
                  'email' =&gt; $cus_email
                  )
          );
  
         return 1;
  
      }catch(Exception $ex){
          return '0';
      }
  }
  </code></pre>