config/app/Http/Controllers/SupplierController.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()
    {
        $suppliers=Supplier::where('supplier_status',1)->orderBy('id','DESC')->get();
        return view('admin.suppliers.all',compact('suppliers'));
    }
public function index ( ) { $ suppliers = Supplier :: where ( 'supplier_status' , 1 ) -> orderBy ( 'id' , 'DESC' ) -> get ( ) ; return view ( 'admin.suppliers.all' , compact ( 'suppliers' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .