public function show($id = null)
 {
     $products = !is_null($id) ? Product::where('id', $id)->get() : Product::all();
     foreach ($products as $product) {
         echo $product->name . ': $' . $product->price . '<br>';
     }
 }