title: Laravel controller method with model as parameter
body: <p>I created an model using <code>php artisan make:model Transaction -a</code>, so it generated a migration, factory, and resource controller for the model too. Everything working as expected, but I realized this in controller code:</p>
  
  <pre><code>/**
   * Display the specified resource.
   *
   * @param  \App\Transaction  $transaction
   * @return \Illuminate\Http\Response
   */
  public function show(Transaction $transaction)
  {
      //
  }
  
  /**
   * Show the form for editing the specified resource.
   *
   * @param  \App\Transaction  $transaction
   * @return \Illuminate\Http\Response
   */
  public function edit(Transaction $transaction)
  {
      //
  }
  </code></pre>
  
  <p>Looks like it's expecting an model instance in <code>show()</code> and <code>edit()</code> methods, what seems to be a helper to return the view, but how can I integrate this in web routing?</p>
  
  <hr>
  
  <p><em>English isn't my native language.</em></p>