title: Laravel Route Model Binding Error
body: <p>I'm developing an application using Laravel and simultaneously going through the Laravel tutorial to learn the various areas of this framework.</p>
  
  <p>In web.php, I have a route:</p>
  
  <pre><code>    Route::get('/events/{event}', 'EventController@show');
  </code></pre>
  
  <p>In the Eventcontroller, I have the following:</p>
  
  <pre><code>    public function show($id) {
          $event = Event::find($id);
          return $event;
      }
  </code></pre>
  
  <p>And it works fine.  When I try and change it to the following format to clean up the code:</p>
  
  <pre><code>    public function show(Event $event) {
          return $event;
      }
  </code></pre>
  
  <p>I'm getting the error:<br>
  Declaration of App\Http\Controllers\EventController::show(App\Event $event) should be compatible with App\Http\Controllers\Controller::show($id)</p>
  
  <p>What am I doing incorrectly?  </p>