app/Http/Controllers/ItemRequestController.php
/*
     * Update solder pending request status when unit confirm company items
     * status = 4
     */
Update solder pending request status when unit confirm company items
status = 4
Update solder pending request status when unit confirm company items status = 4
private function updateCompanySolderPendingStatus($companyOfficeId){
        $solderPendingRequest = SolderItemRequest::where(['company_id'=>$companyOfficeId,'status'=>2])->get();
        if(count($solderPendingRequest)){
            foreach($solderPendingRequest as $solderPending){
                $solderPending->status = 4;
                $solderPending->save();
            }
        }
    }
private function updateCompanySolderPendingStatus ( $ companyOfficeId ) { $ solderPendingRequest = SolderItemRequest :: where ( [ 'company_id' => $ companyOfficeId , 'status' => 2 ] ) -> get ( ) ; if ( count ( $ solderPendingRequest ) ) { foreach ( $ solderPendingRequest as $ solderPending ) { $ solderPending -> status = 4 ; $ solderPending -> save ( ) ; } } }
Update solder pending request status when unit confirm company items
 status = 4
Update solder pending request status when unit confirm company items status = 4