public function bulkDelete(Request $request)
    {
        foreach ($request->all() as $id){
            if (!$this->deleteUser($id)) {
                return $this->response('Internal server error. Please try again later', 500);
            }
        }
        return $this->response('Users are deleted');
    }
public function bulkDelete(Request $request)
    {
        foreach ($request->all() as $id){
            if (!$this->deleteUser($id)) {
                return $this->response('Internal server error. Please try again later', 500);
            }
        }
        return $this->response('Users are deleted');
    }
public function bulkDelete ( Request $ request ) { foreach ( $ request -> all ( ) as $ id ) { if ( ! $ this -> deleteUser ( $ id ) ) { return $ this -> response ( 'Internal server error. Please try again later' , 500 ) ; } } return $ this -> response ( 'Users are deleted' ) ; }
Bulk Delete users. Delete many users with on requests

@params array of user IDs
Bulk Delete users . Delete many users with on requests