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_data = Product::with('RelasiProductCategories','RelasiProductImages')->get();
        return view ('admin.read_product_list',compact (['products_data']));
    }
public function index ( ) { $ products_data = Product :: with ( 'RelasiProductCategories' , 'RelasiProductImages' ) -> get ( ) ; return view ( 'admin.read_product_list' , compact ( [ 'products_data' ] ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//menampilkan list produk