title: Which Route gets executed in Laravel 5 http://localhost:8000/my/8
body: <p>Given the resource controller below which one gets executed when entering <a href="http://localhost:8000/my/8" rel="nofollow">http://localhost:8000/my/8</a>?  When I tried it all I get is blank. The other routes like index and create? How does Laravel decide which route to execute in <a href="http://localhost:8000/my/8" rel="nofollow">http://localhost:8000/my/8</a>?</p>
  
  <pre><code>Route::resource('my','myController');
  &lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  use App\Http\Requests;
  use App\Http\Controllers\Controller;
  
  class MyController extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function index()
      {
          echo 'index';
          //
      }
  
      /**
       * Show the form for creating a new resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function create()
      {
          echo 'create';
          //
      }
  
      /**
       * Store a newly created resource in storage.
       *
       * @param  \Illuminate\Http\Request  $request
       * @return \Illuminate\Http\Response
       */
      public function store(Request $request)
      {
          //
      }
  
      /**
       * Display the specified resource.
       *
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function show($id)
      {
          echo 'show';
          //
      }
  
      /**
       * Show the form for editing the specified resource.
       *
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function edit($id)
      {
          echo 'edit';
          //
      }
  
      /**
       * Update the specified resource in storage.
       *
       * @param  \Illuminate\Http\Request  $request
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function update(Request $request, $id)
      {
          //
      }
  
      /**
       * Remove the specified resource from storage.
       *
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function destroy($id)
      {
          //
          echo 'destroy';
      }
  }
  </code></pre>
  
  <p>Routes:</p>
  
  <pre><code>    | POST                           | my                                                 | my.store   | App\Http\Controllers\myController@store            |            |
  |        | GET|HEAD                       | my                                                 | my.index   | App\Http\Controllers\myController@index            |            |
  |        | GET|HEAD                       | my/create                                          | my.create  | App\Http\Controllers\myController@create           |            |
  |        | DELETE                         | my/{my}                                            | my.destroy | App\Http\Controllers\myController@destroy          |            |
  |        | PUT|PATCH                      | my/{my}                                            | my.update  | App\Http\Controllers\myController@update           |            |
  |        | GET|HEAD                       | my/{my}                                            | my.show    | App\Http\Controllers\myController@show             |            |
  |        | GET|HEAD                       | my/{my}/edit                                       | my.edit    | App\Http\Controllers\myController@edit        
  </code></pre>