title: How can i solve this error "Too few arguments to function App\Http\Controllers\CtnController::show(), 0 passed and exactly 1 expected"
body: <p>I have reviewed similar questions but none of the solutions worked for me. I have show view that fetches data from the db which I want to display. I believe I have the right code for my show function on my CtnController but I keep getting this frustrating error. Ctn in this case is a type of form I'm trying to create.</p>
  
  <p>This is my controller.</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  use App\Ctn;
  
  use Illuminate\Http\Request;
  class CtnController extends Controller
  {
             /**
       * Create a new controller instance.
       *
       * @return void
       */
      public function __construct()
      {
          $this-&gt;middleware('auth');
      }
          /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function index()
      {
          $ctns = Ctn::orderBy('created_at', 'desc')-&gt;paginate(5);
          return view('/ctn.index')-&gt;with('ctns', $ctns);
      }
  
      public function create(){
      return view('/ctn.create'); 
      }
  
      public function store(Request $request){
          $validatedData = $request -&gt; validate([
              'bol' =&gt; 'required',
              'carrier' =&gt; 'required',
               'address' =&gt; 'required',
               'etd' =&gt; 'required',
               'eta' =&gt; 'required',
               'portload' =&gt; 'required',
               'portdischarge' =&gt; 'required',
  
          ]);
  
          $ctn = new Ctn;
          $ctn-&gt;bill_landing = request('bol');
          $ctn-&gt;carrier = request('carrier');
          $ctn-&gt;address = request('address');
          $ctn-&gt;eta = request('eta');
          $ctn-&gt;etd = request('etd');
          $ctn-&gt;incoterm = request('incoterm');
          $ctn-&gt;forwarder = request('forwarder');
          $ctn-&gt;ctnref = request('ctnref');
          $ctn-&gt;portloading = request('portload');
          $ctn-&gt;portdischarge = request('portdischarge');
          $ctn-&gt;quantity = request('quantity');
          $ctn-&gt;origin_goods = request('origin');
          $ctn-&gt;cost_goods = request('cost');
          $ctn-&gt;currency = request('currency');
          $ctn-&gt;package_type = request('package');
  
          $ctn-&gt;save();
          return redirect('/ctn')-&gt;with('success', 'CTN created');
      }
  
      /**
       * Display the specified resource.
       *
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function show($id)
      {
  
          $ctn = Ctn::find($id);
          return view('/ctn.show', compact('ctn'));
      }
  }
  </code></pre>
  
  <p>Below is my show route on web.php file</p>
  
  <pre><code>Route::get('/ctn/show', 'CtnController@show')-&gt;name('show');
  </code></pre>
  
  <p>The show form is just a HTML form.</p>