app/Http/Controllers/ProductCategoriesController.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()
    {
        $productCategories = ProductCategories::all();
        return view ('admin.read_product_category',compact (['productCategories']));
    }
public function index ( ) { $ productCategories = ProductCategories :: all ( ) ; return view ( 'admin.read_product_category' , compact ( [ 'productCategories' ] ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//Menampilkan daftar kategori produk