src/Product/Controllers/ProductController.php
public function index()
    {
        $productsBuilder = $this
            ->repository
            ->query()
            ->where('type', '!=', 'VARIABLE_PRODUCT')
            ->orderBy('id', 'desc');

        $productGrid = new ProductDataGrid($productsBuilder);

        return view('avored-framework::product.index')
            ->with('dataGrid', $productGrid->dataGrid);
    }
public function index()
    {
        $productsBuilder = $this
            ->repository
            ->query()
            ->where('type', '!=', 'VARIABLE_PRODUCT')
            ->orderBy('id', 'desc');

        $productGrid = new ProductDataGrid($productsBuilder);

        return view('avored-framework::product.index')
            ->with('dataGrid', $productGrid->dataGrid);
    }
public function index ( ) { $ productsBuilder = $ this -> repository -> query ( ) -> where ( 'type' , '!=' , 'VARIABLE_PRODUCT' ) -> orderBy ( 'id' , 'desc' ) ; $ productGrid = new ProductDataGrid ( $ productsBuilder ) ; return view ( 'avored-framework::product.index' ) -> with ( 'dataGrid' , $ productGrid -> dataGrid ) ; }
Display a listing of the resource.
r.

@return \Illuminate\Http\Response
Display a listing of the resource . r .