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()
    {
        $id_product = Product::all();
        return view('admin.product.index',['id_product'=>$id_product]);
    }
public function index ( ) { $ id_product = Product :: all ( ) ; return view ( 'admin.product.index' , [ 'id_product' => $ id_product ] ) ; }
Display a listing of the resource.
Display a listing of the resource .
//