title: How to create a resource route in laravel
body: <p>I create a controller named <strong>HomeController</strong> and their methods named </p>
  
  <pre><code>getIndex() 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>index()
  </code></pre>
  
  <p>and after that i make a routing  is follows </p>
  
  <pre><code>Route::resource('home', 'HomeController');
  </code></pre>
  
  <p>But it will gives me this error</p>
  
  <pre><code>Controller method not found.
  </code></pre>
  
  <p>I have fine working in this routes</p>
  
  <pre><code>Route::controller('/', 'IndexController');
  </code></pre>
  
  <p>Please help</p>
  
  <p><strong>Update</strong><br/>
  Thanks all for your help..
  I am a beginner to laravel. So I made a big mistake in my routing that I forget about first in first out rule. So I have to reorder my routes from</p>
  
  <pre><code>Route::controller('/', 'IndexController'); 
  Route::resource('homes', 'HomesController');
  </code></pre>
  
  <p>to</p>
  
  <pre><code>Route::resource('homes', 'HomesController');
  Route::controller('/', 'IndexController'); 
  </code></pre>