app/Http/Controllers/ProductController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $products = Product::all();
        return \view('products.index', ['products' => $products]);
    }
public function index ( ) { $ products = Product :: all ( ) ; return \ view ( 'products.index' , [ 'products' => $ products ] ) ; }
Display a listing of the resource.
Display a listing of the resource .