title: Laravel : Load a view after posting
body: <p>In Codeigniter I used to call the view function after posting data. Like below;</p>
  
  <p>Ex: I have a show_products() function which will display list of products. When a user add a new product I'm posting data into add_product() function. If the process is successful I will <strong>not</strong> redirect to the products page, instead load the display function inside the add_product() like this:</p>
  
  <pre><code>//Inside the add_product() function
  if(success){
  
     $this-&gt;show_products();
  
  }
  </code></pre>
  
  <p>I think, there is no point of reloading the page again. Since we are already in the post function we can straight away set the view after the database insert.</p>
  
  <p>However in laravel I see people redirecting after posting data.</p>
  
  <p>ex:</p>
  
  <pre><code>//Inside the postProduct() function
  if(success){
  
     return Redirect::to('products');
  
  }
  </code></pre>
  
  <p>I tried;</p>
  
  <pre><code>//Inside the postProduct() function
  if(success){
  
     $this-&gt;getIndex();// this is my product display function
  
  }
  </code></pre>
  
  <p>but it didn't work.</p>
  
  <p>Do we have a benefit by loading the view in the post function without redirecting every time?</p>
  
  <p>If so how can I achieve the same thing with the laravel? </p>
  
  <p>Thanks a lot!</p>