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 default(ProductModel $productM){
        $bncodes = $productM::getProductsbyGroup(['bncode'],[],'bncode');
        $cases = $productM::getProductsbyGroup(['cas'],[],'cas');
        $names = $productM::getProductsbyGroup(['product_cname'],[],'product_cname');
        return view('product.index',compact('bncodes','cases','names'));
    }
public function default ( ProductModel $ productM ) { $ bncodes = $ productM :: getProductsbyGroup ( [ 'bncode' ] , [ ] , 'bncode' ) ; $ cases = $ productM :: getProductsbyGroup ( [ 'cas' ] , [ ] , 'cas' ) ; $ names = $ productM :: getProductsbyGroup ( [ 'product_cname' ] , [ ] , 'product_cname' ) ; return view ( 'product.index' , compact ( 'bncodes' , 'cases' , 'names' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .