title: "Type error: Too few arguments to function App\Http\Controllers\FrontController::detail(), 0 passed and exactly 1 expected"
body: <p>I want to passing a data from Shirts to details, to know a detail of product from Shirts. How to do that? I have some error here 
  <a href="https://i.stack.imgur.com/qVMiG.png" rel="nofollow noreferrer">Error's Message</a></p>
  
  <p>This my web view
  <a href="https://i.stack.imgur.com/wkcJF.png" rel="nofollow noreferrer">web View</a></p>
  
  <p>FrontController.php </p>
  
  <pre><code> class FrontController extends Controller
  {
    public function index()
    {
      $shirts=Product::all();
      return view('front.home', compact('shirts'));
    }
    public function shirts()
    {
      $shirts=Product::all();
      return view('front.shirts', compact('shirts'));
    }
    public function detail($id)
    {
        return view('front.shirt', ['detail' =&gt; Product::findOrFail($id)]);
  
    }
  </code></pre>
  
  <p>Route
  Web.php</p>
  
  <pre><code>Route::get('/', 'FrontController@index')-&gt;name('home');
  Route::get('/shirts', 'FrontController@shirts')-&gt;name('shirts');
  Route::get('/detail', 'FrontController@detail')-&gt;name('detail');
  </code></pre>
  
  <p>Shirts.blade.php</p>
  
  <pre><code>&lt;a href="{{route('detail', $shirt-&gt;id)}}"&gt;
  </code></pre>